std::chrono::time_point
From cppreference.com
Defined in header <chrono>
|
||
template< class Clock, |
(since C++11) | |
Class template std::chrono::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.
Member types
Member type | Definition |
clock
|
Clock , the clock on which this time point is measured
|
duration
|
Duration , a std::chrono::duration type used to measure the time since epoch
|
rep
|
Rep , an arithmetic type representing the number of ticks of the duration
|
period
|
Period , a std::ratio type representing the tick period of the duration
|
Member functions
constructs a new time point (public member function) | |
returns the time point as duration since the start of its clock (public member function) | |
modifies the time point by the given duration (public member function) | |
[static] |
returns the time point corresponding to the smallest duration (public static member function) |
[static] |
returns the time point corresponding to the largest duration (public static member function) |
Non-member functions
specializes the std::common_type trait (class template specialization) | |
modifies the time point by the given duration (function template) | |
compares two time points (function template) | |
converts a time point to another time point on the same clock, with a different duration (function template) | |
converts a time_point to another, rounding down (function template) | |
converts a time_point to another, rounding up (function template) | |
converts a time_point to another, rounding to nearest, ties to even (function template) |