< cpp‎ | chrono
Revision as of 09:08, 22 December 2012 by P12 (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

Defined in header <chrono>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
class high_resolution_clock;

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

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.

std::chrono::high_resolution_clock meets the requirements of TrivialClock.


Member types

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>

Member constants

bool is_steady
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)

Member functions

returns a std::chrono::time_point representing the current value of the clock
(public static member function)

See also

wall clock time from the system-wide realtime clock
monotonic clock that will never be adjusted