Class real_time_tools::FrequencyManager

class real_time_tools::FrequencyManager

Class to have threads / loops running at a desired frequency.

Public Functions

FrequencyManager(double frequency)
bool wait()

waits for the time such that successive calls to wait will result in wait being called at the desired frequency

Returns

true if the desired frequency could be enforced

Private Members

double period_ms_
double previous_time_ms_