Megosztás a következőn keresztül:


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

time_point::time_point Constructor

Constructs a time_point object.

Public Methods

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.

Public Operators

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.

Requirements

Header: chrono

Namespace: std::chrono

See Also

Reference

<chrono>

Other Resources

C++ Standard Library Header Files