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 β€” the duration type is chrono::nanoseconds, periodt. ⭐
  • typedef duration::period period β€” period comes from duration::period. πŸ’«
  • typedef duration::rep rep β€” rep comes from duration::rep. 🌸
  • typedef chrono::time_point< system_clock, duration > time_point β€” the time_point type is chrono::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 named is_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