std::this_thread::sleep_until

From Cppreference

Jump to: navigation, search
Defined in header <thread>

template< typename Clock, typename Duration >
void sleep_until( const std::chrono::time_point<Clock,Duration>& sleep_time );
(C++11 feature)

Blocks the execution of the current thread until specified sleep_time has been reached. May block for longer than until sleep_time has been reached.

Contents

[edit] Parameters

sleep_time - time to block until

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept

  (C++11 feature)

[edit] See also

sleep_for (C++11)
stops the execution of the current thread for a specified time duration
(function)