std::chrono::steady_clock

From cppreference.com
< cpp‎ | chrono
Date and time library
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++11)
steady_clock
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time of day
(C++20)(C++20)
(C++20)(C++20)
(C++20)

Calendar
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
Time zone
(C++20)
(C++20)
(C++20) (C++20) (C++20) (C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
chrono I/O
(C++20)
C-style date and time
std::chrono::steady_clock
Member functions
Defined in header <chrono>
class steady_clock;
(since C++11)

Class std::chrono::steady_clock

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

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

Member functions

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

See also

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