32 void setRate(
const double rate_hz);
bool sleep()
Sleeps for some time, such as the return of this method is 1/rate (seconds) after the return of the p...
void setRate(const double rate_hz)
Changes the object loop rate (Hz)
virtual ~CRateTimer()
Dtor.
This class implements a high-performance stopwatch.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::utils::CTicTac m_tictac
CRateTimer(const double rate_hz=1.0)
Ctor: specifies the desired rate (Hz)
A class for calling sleep() in a loop, such that the amount of sleep time will be computed to make th...