std::chrono::steady_clock(3)
π NAME π
std::chrono::steady_clock - std::chrono::steady_clock
okay so welcome to the std::chrono::steady_clock(3) page from the C++ Standard Libary β yes, βLibaryβ is literally what the header says, weβre not fixing her π
. This is your bestie-approved guide to the clock that refuses to go backwards. iykyk β°β¨
πΈ Synopsis πΈ
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, and the time between ticks of this clock is constant. This clock is not related to wall clock time (for example, it can be time since last reboot), and itβs most suitable for measuring intervals. Also, std::chrono::steady_clock meets the requirements of TrivialClock. No cap, thatβs the whole vibe π°οΈπ«
π¦ Member types π¦
repβ an arithmetic type representing the number of ticks in the clockβs duration.periodβ astd::ratiotype 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β the steady clock flag, alwaystrue;[static](public static member constant).
π Member functions π
nowβ returns atime_pointrepresenting the current value of the clock;[static](public static member function).
π See also π
system_clockβ wall clock time from the system-wide realtime clock;(C++11)(class).high_resolution_clockβ the clock with the shortest tick period available;(C++11)(class).
okay thatβs the whole page, bestie β source is http://cppreference.com, dated 2024.06.10, and the manual name is std::chrono::steady_clock(3). mwah πβ¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms