std::chrono::time_point::time_point
From cppreference.com
< cpp | chrono | time point
| time_point(); |
(1) | (since C++11) |
| explicit time_point( const duration& d ); |
(2) | (since C++11) |
| template< class Duration2 > time_point( const time_point<Clock,Duration2>& t ); |
(3) | (since C++11) |
Constructs a new time_point from one of several optional data sources.
1) Default constructor, creates a
time_point with a value of Clock's epoch.2) Constructs a
time_point at Clock's epoch plus d.3) Constructs a
time_point by converting t to duration. This constructor only participates in overload resolution if Duration2 is implicitly convertible to duration.[edit] Parameters
| d | - | a duration to copy from
|
| t | - | a time_point to convert from
|
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| constructs new duration (public member function of std::chrono::duration)
| |