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 GetCounter() const -> std::uint64_t
Returns the current counter value.
auto GetFrequency() const -> std::uint32_t
Returns the counter frequency in counts per second.

Friends

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