29#ifndef NOMLIB_SYSTEM_HIGH_RESOLUTION_TIMER_HPP
30#define NOMLIB_SYSTEM_HIGH_RESOLUTION_TIMER_HPP
32#include "nomlib/config.hpp"
51 std::string ticks_str()
const;
bool paused_
Activity status of the timer.
static real64 to_seconds(uint64 hires_ticks)
Convert a high resolution timing value to seconds.
HighResolutionTimer()
Default constructor.
void restart()
Alias for start.
bool started_
Running status of the timer.
static real64 elapsed_ticks(uint64 start_hires_ticks, uint64 end_hires_ticks)
Get the elapsed frequency count per second of the high resolution counter.
~HighResolutionTimer()
Destructor.
static real64 to_milliseconds(uint64 hires_ticks)
Convert a high resolution timing value to milliseconds.
real64 to_seconds() const
Convert a high resolution timing value to seconds.
uint64 paused_ticks_
The recorded timestamp at the time of pausing the timer.
uint64 elapsed_ticks_
The recorded timestamp at the time of starting the timer.