31 auto next_call = clock::now() + period_duration;
32 while ( ( repetitions == 0 || n < repetitions ) &&
33 stop_signal.wait_until( next_call ) == std::future_status::timeout ) {
38 const auto now = clock::now();
39 while ( next_call < now ) next_call += period_duration;