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 either system_clock (non-monotonic) or the monotonic steady_clock (or be a distinct clock). Since we always desire for this to be a monotonic clock, this aliases std::chrono::high_resolution_clock only if it is steady, otherwise it aliases std::chrono::steady_clock.