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.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018|