Export (0) Print
Expand All

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;

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.

Name

Description

time_point::time_point Constructor

Constructs a time_point object.

Name

Description

time_point::max Method

Specifies the upper limit for time_point::ref.

time_point::min Method

Specifies the lower limit for time_point::ref.

time_point::time_since_epoch Method

Returns the stored duration value.

Name

Description

time_point::operator+= Operator

Adds a specified value to the stored duration.

time_point::operator-= Operator

Subtracts a specified value from the stored duration.

Header: chrono

Namespace: std::chrono

Show:
© 2015 Microsoft