A class for calling sleep() in a loop, such that the amount of sleep time will be computed to make the loop run at the desired rate (in Hz).
|CRateTimer (const double rate_hz=1.0)|
|Ctor: specifies the desired rate (Hz) More...|
|void||setRate (const double rate_hz)|
|Changes the object loop rate (Hz) More...|
|Sleeps for some time, such as the return of this method is 1/rate (seconds) after the return of the previous call. More...|
|CRateTimer::CRateTimer||(||const double||rate_hz = ||)|
|void CRateTimer::setRate||(||const double||rate_hz||)|
Sleeps for some time, such as the return of this method is 1/rate (seconds) after the return of the previous call.
|Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019|