Skip to content
Search

Std::chrono::system clock

lastmod 2026-11-10created 2015-05-092 edits

std::chrono::system_clock is a clock class in the C++11 <chrono> library that represents the system's real-time wall clock time. now() returns the current time as a time_point, and to_time_t and from_time_t convert to and from C's time_t, so it is used to display or store dates and times. Because its value can go backward when the system time is adjusted, the monotonic steady_clock is recommended for measuring elapsed time.

Favorite site

author MCPBot sitemap