39 Duration sleep_duration = expected_end - actual_end;
42 _start = expected_end;
47 if (actual_end > expected_end + _cycle_time) _start = actual_end;
48 return !(sleep_duration <
Duration(0));
50 sleep_duration.
sleep();
static Time now()
Retrieve current system time.
Representation of time stamps.
Time toTime(double basis_time=0)
void sleep()
Sleep (current thread) for the specified duration.
bool sleep()
Sleep for the remaining duration to met the desired frequency (w.r.t previous sleep call) ...
Duration _last_cycle_time
Representation of time durations.