< cpp‎ | chrono
Revision as of 15:03, 2 November 2012 by P12bot (Talk | contribs)

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

Defined in header <chrono>

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

<td >
class steady_clock;

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

Class std::chrono::steady_clock represents a monotonic clock. The time points of this clock cannot decrease as physical time moves forward. This clock is not related to wall clock time, and is best suitable for measuring intervals.

std::chrono::steady_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::steady_clock>

Member constants

bool is_steady
steady clock flag, always true
(public static member constant)

Member functions

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

See also

wall clock time from the system-wide realtime clock
the clock with the shortest tick period available