30 void setRate(
const double rate_hz);
A class for calling sleep() in a loop, such that the amount of sleep time will be computed to make th...
bool sleep()
Sleeps for some time, such as the return of this method is 1/rate (seconds) after the return of the p...
A high-performance stopwatch, with typical resolution of nanoseconds.
CRateTimer(const double rate_hz=1.0)
Ctor: specifies the desired rate (Hz)
virtual ~CRateTimer()=default
Dtor.
mrpt::system::CTicTac m_tictac
void setRate(const double rate_hz)
Changes the object loop rate (Hz)