tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
time_point.hpp File Reference

Go to the source code of this file.

Classes

struct  time_point< Clock, Duration >
 Class template time_point represents a point in time. It is implemented as if it stores a value of type Duration indicating the time interval from the start of the Clock's epoch. More...
 

Namespaces

namespace  etl
 
namespace  etl::chrono
 

Functions

template<typename Clock , typename Dur1 , typename Dur2 >
constexpr auto operator< (time_point< Clock, Dur1 > const &lhs, time_point< Clock, Dur2 > const &rhs) noexcept -> bool
 Compares two time points. The comparison is done by comparing the results time_since_epoch() for the time points.
 
template<typename Clock , typename Dur1 , typename Dur2 >
constexpr auto operator<= (time_point< Clock, Dur1 > const &lhs, time_point< Clock, Dur2 > const &rhs) noexcept -> bool
 Compares two time points. The comparison is done by comparing the results time_since_epoch() for the time points.
 
template<typename Clock , typename Dur1 , typename Dur2 >
constexpr auto operator== (time_point< Clock, Dur1 > const &lhs, time_point< Clock, Dur2 > const &rhs) noexcept -> bool
 Compares two time points. The comparison is done by comparing the results time_since_epoch() for the time points.
 
template<typename Clock , typename Dur1 , typename Dur2 >
constexpr auto operator> (time_point< Clock, Dur1 > const &lhs, time_point< Clock, Dur2 > const &rhs) noexcept -> bool
 Compares two time points. The comparison is done by comparing the results time_since_epoch() for the time points.
 
template<typename Clock , typename Dur1 , typename Dur2 >
constexpr auto operator>= (time_point< Clock, Dur1 > const &lhs, time_point< Clock, Dur2 > const &rhs) noexcept -> bool
 Compares two time points. The comparison is done by comparing the results time_since_epoch() for the time points.