std::chrono::system_clock(3cxx)
π NAME π
Okay so this is the std::chrono::system_clock(3cxx) manual page, bestie β the whole vibe check on System clock in libstdc++. No cap, it's the clock that gives you wall time from the system-wide clock. Iconic.
β¨ SYNOPSIS β¨
Here's the cast, and yes every one of them is main character energy.
πΈ Public Types πΈ
typedef chrono::nanoseconds durationβ the duration type ischrono::nanoseconds, periodt.typedef duration::period periodβ the period type isduration::period.typedef duration::rep repβ the rep type isduration::rep.typedef chrono::time_point< system_clock, duration > time_pointβ the time_point type is exactlychrono::time_point< system_clock, duration >.
π¦ Static Public Member Functions π¦
static time_point from_time_t (std::time_t __t) noexceptβ turns astd::time_tinto atime_point; signature is right there withnoexcept.static time_point now () noexceptβ gets you the currenttime_point; alsonoexcept.static std::time_t to_time_t (const time_point &__t) noexceptβ turns aconst time_point &into astd::time_t;noexceptagain.
β Static Public Attributes β
static constexpr bool is_steadyβ it's astatic constexpr bool, and that's the whole attribute.
π Detailed Description π
System clock. Literally what it says on the tin.
The time it returns represents wall time from the system-wide clock. That's the described behavior, bestie β no extra lore added.
The source definition lives at line 1110 of file chrono.h, so you can go look at the actual code if you're feeling nosy. π
π Author π
It was generated automatically by Doxygen for libstdc++ from the source code, so nobody hand-wrote this little bio. It's giving automated documentation slay. β¨
Cute lil sign-off: this page is from libstdc++, dated Sat Mar 19 2022, and it's the std::chrono::system_clock(3cxx) manual page. Bye bestie, go tell the system clock it ate. π«Άπ
π¦ where this page comes from
- ubuntu jammy: libstdc++-12-doc 12-20220319-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms