std::chrono::system_clock(3cxx)
π std::chrono::system_clock β the system clock, bestie π
okay so welcome to the std::chrono::system_clock(3cxx) page β that's the manual name, and this whole thing is about std::chrono::system_clock. It's giving βclock but make it C++ chrono,β and we're gonna get through every little detail together. π«Ά
β¨ NAME β¨
std::chrono::system_clock β the system clock. literally that's the name, no cap. π°οΈ
π¦ SYNOPSIS π¦
bestie, you start with this include and the vibes are immaculate:
#include <chrono>
π Public Types π
typedef chrono::nanoseconds durationβ thedurationtype ischrono::nanoseconds, periodt. βtypedef duration::period periodβperiodcomes fromduration::period. π«typedef duration::rep repβrepcomes fromduration::rep. πΈtypedef chrono::time_point< system_clock, duration > time_pointβ thetime_pointtype ischrono::time_point< system_clock, duration >, exactly like that. π
π Static Public Member Functions π
these are the static public member functions, kept character-for-character because we do not play with code:
static _GLIBCXX_TIME_BITS64_ABI_TAG time_point from_time_t (std::time_t __t) noexcept
static time_point now () noexcept
static _GLIBCXX_TIME_BITS64_ABI_TAG std::time_t to_time_t (const time_point &__t) noexcept
so yes: from_time_t, now, and to_time_t β all noexcept, all static public member functions, all iconic. π
π Static Public Attributes π
static constexpr bool is_steadyβ a static constexpr bool namedis_steady. that's the whole attribute, bestie. β¨
πΈ Detailed Description πΈ
okay so system_clock is the system clock. the time returned represents wall time from the system-wide clock β that's the entire description, and honestly it ate. π°οΈπ₯
π Author π
not a person, bestie: Generated automatically by Doxygen for libstdc++ from the source code. π€π
xoxo, source/version: libstdc++ β and the date is literally not listed in the footer, bestie, so we're not gonna invent one. π
π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms