nCine::Clock class

High-resolution monotonic system clock.

Wraps the highest-resolution monotonic timer available on the platform. The single instance is accessed through clock().

Public functions

auto now() const -> std::uint64_t
Returns the current counter value.
auto counter() const -> std::uint64_t
Returns the current counter value.
auto frequency() const -> std::uint32_t
Returns the counter frequency in counts per second.

Friends

auto clock() -> Clock&
Returns the shared system clock instance.