67 uint32_t
Rate()
const;
72 uint32_t
Rate(uint32_t rate);
93 #endif // _DWMPACER_HH_ uint32_t Rate() const
Returns the rate (reps per second).
void Pace()
This should be called between each call you wish to throttle.
This class encapsulates a time value beyond the UNIX epoch, with microsecond granularity.
Definition: DwmTimeValue.hh:72
Pacer(uint32_t rate)
Construct with the given rate (reps per second).
This class permits throttling of functions to a max number of repetitions per second.
Definition: DwmPacer.hh:56
Dwm::TimeValue class definition.
Definition: DwmBZ2IO.hh:67