std::chrono::steady_clock - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::chrono::steady_clock

From cppreference.com
< cpp‎ | chrono

Defined in header `<chrono>` |  |
class steady_clock; |  | (since C++11)

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`.

### [edit] 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>

### [edit] Member constants

constexpr bool is_steady [static] | steady clock flag, always true (public static member constant)

### [edit] Member functions

now [static] | returns a time_point representing the current value of the clock (public static member function)

### [edit] See also

system_clock (C++11) | wall clock time from the system-wide realtime clock (class)
high_resolution_clock (C++11) | the clock with the shortest tick period available (class)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/chrono/steady_clock&oldid=64487"