std::chrono::high_resolution_clock
STD::时间::高[医]分辨力[医]钟
Defined in header | | |
---|
class high_resolution_clock; | | (since C++11) |
类std::chrono::high_resolution_clock
表示由实现提供的具有最小勾选周期的时钟。它可能是std::chrono::system_clock
或std::chrono::steady_clock
或者第三个独立时钟。
std::chrono::high_resolution_clock
满足…的要求TrivialClock
...
成员类型
Member type | Definition |
---|
rep | arithmetic type representing the number of ticks in the clock's duration |
period | a std::ratio type representing the tick period of the clock, in seconds |
duration | std::chrono::duration<rep, period> |
time_point | std::chrono::time_point<std::chrono::high_resolution_clock> |
成员常数
constexpr bool is_steady static | true if the time between ticks is always constant, i.e. calls to now() return values that increase monotonically even in case of some external clock adjustment (public static member constant) |
---|
成员函数
now static | returns a std::chrono::time_point representing the current value of the clock (public static member function) |
---|
另见
system_clock (C++11) | wall clock time from the system-wide realtime clock (class) |
---|
steady_clock (C++11) | monotonic clock that will never be adjusted (class) |
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/chrono/High[医]分辨力[医]钟