<chrono>
Include the standard header <chrono> to define classes and functions that represent and manipulate time durations and time instants.
#include <chrono>
|
Name |
Description |
|---|---|
|
Describes specializations of template class common_type for instantiations of duration and time_point. |
|
|
Provides specific values for the duration template parameter Rep. |
|
|
Represents a clock type that is based on the real-time clock of the system. |
|
|
Specifies whether a type can be treated as a floating-point type. |
|
Name |
Description |
|---|---|
|
Operator for subtraction or negation of duration and time_point objects. |
|
|
Inequality operator that is used with duration or time_point objects. |
|
|
Operator for modulo operations on duration objects. |
|
|
Multiplication operator for duration objects. |
|
|
Division operator for duration objects. |
|
|
Adds duration and time_point objects. |
|
|
Determines whether one duration or time_point object is less than another duration or time_point object. |
|
|
Determines whether one duration or time_point object is less than or equal to another duration or time_point object. |
|
|
Determines whether two duration objects represent time intervals that have the same length, or whether two time_point objects represent the same point in time. |
|
|
Determines whether one duration or time_point object is greater than another duration or time_point object. |
|
|
Determines whether one duration or time_point object is greater than or equal to another duration or time_point object. |
For more information about ratio types that are used in the following typedefs, see <ratio>.
|
Typedef |
Description |
|---|---|
|
typedef duration<long long, nano> nanoseconds; |
Synonym for a duration type that has a tick period of one nanosecond. |
|
typedef duration<long long, micro> microseconds; |
Synonym for a duration type that has a tick period of one microsecond. |
|
typedef duration<long long, milli> milliseconds; |
Synonym for a duration type that has a tick period of one millisecond. |
|
typedef duration<long long> seconds; |
Synonym for a duration type that has a tick period of one second. |
|
typedef duration<int, ratio<60> > minutes; |
Synonym for a duration type that has a tick period of one minute. |
|
typedef duration<int, ratio<3600> > hours; |
Synonym for a duration type that has a tick period of one hour. |