std::chrono::high_resolution_clock
From Cppreference
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Utilities library | ||||||||||||||||||||||||||||||||||||||||
| Date and time utilities | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| Defined in header <chrono>
|
||
| Defined in namespace std::chrono
| ||
| class high_resolution_clock;
|
(since C++11) | |
Class std::chrono::high_resolution_clock represents the clock with the smallest tick period available on the system. It may be an alias of std::chrono::system_clock or std::chrono::steady_clock, or a third, independent clock.
Contents |
[edit] Member types
| Member type | Definition |
| rep | arithmetic type representing the number of ticks in the clock's duration |
| period | an 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::steady_clock> |
[edit] Member constants
| [static]
|
indicates if the clock is monotonous (public static member constant) |
[edit] Member functions
| [static]
|
returns a time_point representing the current value of the clock (public static member function) |
[edit] See also
| (C++11)
|
wall clock time from the system-wide realtime clock (class) |
| (C++11)
|
monotonic clock that will never be adjusted (class) |