| 247 | |
| 248 | template <class Duration> |
| 249 | void sleep_until(const chrono::time_point<chrono::steady_clock, Duration>& t) |
| 250 | { |
| 251 | sleep_for(t - chrono::steady_clock::now()); |
| 252 | } |
| 253 | |
| 254 | template <class Clock, class Duration> |
| 255 | void sleep_until(const chrono::time_point<Clock, Duration>& t) |