47 void wait (
int milliseconds);
48 bool timeout (int64_t milliseconds);
49 void waitUntil (int64_t milliseconds,
int interval_ms=5);
52 std::chrono::time_point<std::chrono::system_clock>
mStart;
std::chrono::time_point< std::chrono::system_clock > mStart
Timer()
Constructor, resets the timer.
Versatile timer for the entropy tuner.
bool timeout(int64_t milliseconds)
Check for timeout.
void waitUntil(int64_t milliseconds, int interval_ms=5)
Wait in idle mode for a certain minimum time span since last reset.
void wait(int milliseconds)
Wait in idle mode without consuming CPU time.
int64_t getMilliseconds()
void reset()
Reset the timer and remember the current time locally.