Namespaces
Variants
Views
Actions

std::chrono::time_point::time_point

From cppreference.com
< cpp‎ | chrono‎ | time point
Revision as of 21:49, 31 May 2013 by P12bot (Talk | contribs)

time_point();
(1)
explicit time_point(const duration& d);
(2)
template <class Duration2>
time_point(const time_point<clock, Duration2>& t);
(3)

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.

Parameters

d - a duration to copy from
t - a time_point to convert from

Example

See also

constructs new duration
(public member function of std::chrono::duration) [edit]