time_point::time_point Constructor
Constructs a time_point object.
time_point();
explicit time_point(const duration& Dur);
template<class Duration2>
time_point(const time_point<clock, Duration2>& Tp);
Parameters
Dur
A duration object.Tp
A time_point object.
Remarks
The first constructor constructs an object whose stored duration value is equal to duration::zero.
The second constructor constructs an object whose stored duration value is equal to Dur. Unless is_convertible<Duration2, duration>holds true, the second constructor does not participate in overload resolution. For more information, see <type_traits>.
The third constructor initializes its duration value by using Tp.time_since_epoch().
Requirements
Header: chrono
Namespace: std::chrono