time_point Class
A time_point describes a type that represents a point in time. It holds an object of type duration that stores the elapsed time since the epoch that is represented by the template argument Clock.
template<
class Clock,
class Duration = typename Clock::duration
>
class time_point;
Members
Public Typedefs
Name |
Description |
---|---|
time_point::clock |
Synonym for the template parameter Clock. |
time_point::duration |
Synonym for the template parameter Duration. |
time_point::period |
Synonym for the nested type name duration::period. |
time_point::rep |
Synonym for the nested type name duration::rep. |
Public Constructors
Name |
Description |
---|---|
Constructs a time_point object. |
Public Methods
Name |
Description |
---|---|
Specifies the upper limit for time_point::ref. |
|
Specifies the lower limit for time_point::ref. |
|
Returns the stored duration value. |
Public Operators
Name |
Description |
---|---|
Adds a specified value to the stored duration. |
|
Subtracts a specified value from the stored duration. |
Requirements
Header: chrono
Namespace: std::chrono