#
steady-clock
std::steady_clock for monotonic time measurements
ProgrammingDoes std::steady_clock::now() Give Global Time in C++ Threads?
std::steady_clock::now() returns a global monotonic time point comparable across C++ threads, but now1 < now2 doesn't imply execution order or happens-before between operations like store and load in multithreading.
1 answer• 1 view