opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
chrono_helpers.h File Reference
#include <chrono>
#include <cmath>
#include <type_traits>
Include dependency graph for chrono_helpers.h:

Go to the source code of this file.

Namespaces

namespace  osc
 

Functions

template<typename Rep , typename Period , typename Arithmetic >
requires std::is_arithmetic_v<Rep>
and std::is_arithmetic_v< Arithmetic > constexpr std::chrono::duration< Rep, Periodosc::lerp (const std::chrono::duration< Rep, Period > &a, const std::chrono::duration< Rep, Period > &b, const Arithmetic &t)
 
template<typename Clock , typename Duration , typename Arithmetic >
requires std::is_arithmetic_v<Arithmetic>
constexpr std::chrono::time_point< Clock, Durationosc::lerp (const std::chrono::time_point< Clock, Duration > &a, const std::chrono::time_point< Clock, Duration > &b, const Arithmetic &t)