<chrono>
Include the standard header <chrono> to define classes and functions that represent and manipulate time durations and time instants.
#include <chrono>
클래스
Name |
설명 |
---|---|
Describes a type that holds a time interval. |
|
이 steady 시계를 나타냅니다. |
|
Describes a type that represents a point in time. |
Structs
Name |
설명 |
---|---|
Describes specializations of template class common_type for instantiations of duration and time_point. |
|
Provides specific values for the duration template parameter Rep. |
|
시스템의 실시간 시계를 기반으로한 시계 유형 을 나타냅니다. |
|
Specifies whether a type can be treated as a floating-point type. |
함수
Name |
설명 |
---|---|
지정된 형식을 duration 개체로 캐스트 합니다. |
|
지정된 형식을 time_point 개체로 캐스트 합니다. |
연산자
Name |
설명 |
---|---|
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. |
|
두 duration 개체가 같은 기간 동안 시간 간격을 보여주는 여부 혹은 두 time_point 개체가 동일한 시간을 나타내는 여부를 결정합니다. |
|
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. |
Predefined Duration Types
For more information about ratio types that are used in the following typedefs, see <ratio>.
형식 정의 |
설명 |
---|---|
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. |