std::condition_variable::wait_for does not count time spent in sleep mode, resulting in longer than expected waits.