A high-performance stopwatch, with typical resolution of nanoseconds.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::system::CTicTac m_tictac
bool sleep()
Sleeps for some time, such as the return of this method is 1/rate (seconds) after the return of the p...
A class for calling sleep() in a loop, such that the amount of sleep time will be computed to make th...
CRateTimer(const double rate_hz=1.0)
Ctor: specifies the desired rate (Hz)
void setRate(const double rate_hz)
Changes the object loop rate (Hz)
virtual ~CRateTimer()
Dtor.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |