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 is chrono::nanoseconds, periodt.
  • typedef duration::period period β€” the period type is duration::period.
  • typedef duration::rep rep β€” the rep type is duration::rep.
  • typedef chrono::time_point< system_clock, duration > time_point β€” the time_point type is exactly chrono::time_point< system_clock, duration >.

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static time_point from_time_t (std::time_t __t) noexcept β€” turns a std::time_t into a time_point; signature is right there with noexcept.
  • static time_point now () noexcept β€” gets you the current time_point; also noexcept.
  • static std::time_t to_time_t (const time_point &__t) noexcept β€” turns a const time_point & into a std::time_t; noexcept again.

⭐ Static Public Attributes ⭐

  • static constexpr bool is_steady β€” it's a static 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