#include "timer.h"
|
const std::chrono::high_resolution_clock::duration | interval |
|
std::chrono::high_resolution_clock::time_point | next_time |
|
std::chrono::high_resolution_clock::time_point | from |
|
Definition at line 52 of file timer.h.
◆ IntervalTimer()
MR::IntervalTimer::IntervalTimer |
( |
double |
time_interval = 0.0333333 | ) |
|
|
inline |
by default, fire at ~30 Hz - most monitors are 60Hz
Definition at line 55 of file timer.h.
◆ operator bool()
MR::IntervalTimer::operator bool |
( |
| ) |
|
|
inline |
return true if ready, false otherwise
Note that the timer immediately resets; next invocation will return false until another interval has elapsed.
Definition at line 62 of file timer.h.
◆ interval
const std::chrono::high_resolution_clock::duration MR::IntervalTimer::interval |
|
protected |
◆ next_time
std::chrono::high_resolution_clock::time_point MR::IntervalTimer::next_time |
|
protected |
The documentation for this class was generated from the following file: