high_resolution_clock#
Fully qualified name: carb::cpp::chrono::high_resolution_clock
Defined in carb/cpp/Chrono.h
-
using carb::cpp::chrono::high_resolution_clock = std::conditional_t<std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock>#
A monotonic high-resolution clock.
Note
The standard allows
std::chrono::high_resolution_clock
to alias eithersystem_clock
(non-monotonic) or the monotonicsteady_clock
(or be a distinct clock). Since we always desire for this to be a monotonic clock, this aliasesstd::chrono::high_resolution_clock
only if it is steady, otherwise it aliasesstd::chrono::steady_clock
.