|
constexpr | TimePoint () |
| Initialized to zero time, the clock's epoch. More...
|
|
constexpr | TimePoint (const Duration &d) |
| Construct with a duration from clock's epoch. More...
|
|
template<class Dur2 > |
constexpr | TimePoint (const TimePoint< Clock, Dur2 > &t) |
| Construct from a time point with the same clock but different duration. More...
|
|
template<class Clock2 , class Dur2 > |
| TimePoint (const TimePoint< Clock2, Dur2 > &t) |
| Construct from a different clock. More...
|
|
template<class Dur2 > |
TimePoint & | operator= (const TimePoint< Clock, Dur2 > &rhs) |
|
template<class Clock2 , class Dur2 > |
TimePoint & | operator= (const TimePoint< Clock2, Dur2 > &rhs) |
|
TimePoint & | operator+= (const Duration &rhs) |
|
TimePoint & | operator-= (const Duration &rhs) |
|
template<class Dur2 > |
constexpr bool | operator== (const TimePoint< Clock, Dur2 > &rhs) const |
|
template<class Dur2 > |
constexpr bool | operator!= (const TimePoint< Clock, Dur2 > &rhs) const |
|
template<class Dur2 > |
constexpr bool | operator< (const TimePoint< Clock, Dur2 > &rhs) const |
|
template<class Dur2 > |
constexpr bool | operator> (const TimePoint< Clock, Dur2 > &rhs) const |
|
template<class Dur2 > |
constexpr bool | operator<= (const TimePoint< Clock, Dur2 > &rhs) const |
|
template<class Dur2 > |
constexpr bool | operator>= (const TimePoint< Clock, Dur2 > &rhs) const |
|
constexpr Duration | time () const |
| Get duration since clock epoch time. More...
|
|
|
(Note that these are not member functions.)
|
|
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>> |
constexpr TimeCommon | operator+ (const TimePoint< Clock, Dur > &lhs, const Duration< Rep, Period > &rhs) |
| operator+(TimePoint, Duration). Returns a time point of best-fit duration. More...
|
|
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>> |
constexpr TimeCommon | operator+ (const Duration< Rep, Period > &lhs, const TimePoint< Clock, Dur > &rhs) |
| operator+(Duration, TimePoint). Returns a time point of best-fit duration. More...
|
|
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>> |
constexpr TimeCommon | operator- (const TimePoint< Clock, Dur > &lhs, const Duration< Rep, Period > &rhs) |
| operator-(TimePoint, Duration). Returns a time point of best-fit duration. More...
|
|
template<class Clock , class Dur , class Dur2 , class DurCommon = typename std::common_type<Dur, Dur2>::type> |
constexpr DurCommon | operator- (const TimePoint< Clock, Dur > &lhs, const TimePoint< Clock, Dur2 > &rhs) |
| operator-(TimePoint, TimePoint). Returns a best-fit duration. More...
|
|
template<class Clock_, class Dur = typename Clock_::Duration>
class honey::TimePoint< Clock_, Dur >
TimePoint represented by a duration since a clock's epoch time.
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>>
operator+(TimePoint, Duration). Returns a time point of best-fit duration.
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>>
operator+(Duration, TimePoint). Returns a time point of best-fit duration.
template<class Clock , class Dur , class Rep , class Period , class TimeCommon = TimePoint<Clock, typename std::common_type<Dur, Duration<Rep,Period>>::type>>
operator-(TimePoint, Duration). Returns a time point of best-fit duration.