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.5.7 Git: 8277875f6 Mon Jun 11 02:47:32 2018 +0200 at lun oct 28 01:50:49 CET 2019|