Suspend execution of the current thread until the specified time point has been reached.
template<typename Clock,typename Duration> void sleep_until( std::chrono::time_point<Clock,Duration> const& absolute_time);
- Effects:
Blocks the current thread until the specified
absolute_timehas been reached for the specifiedClock.- Note:
There is no guarantee as to how long the calling thread will be blocked for, only that
Clock::now()returned a time equal to or later thanabsolute_timeat the point at which the thread became unblocked.- Throws:
Nothing
Header
#include <thread>