Namespaces
Variants
Views
Actions

std::this_thread::sleep_until

From cppreference.com
Defined in header <thread>
template< class Clock, class Duration >
void sleep_until( const std::chrono::time_point<Clock,Duration>& sleep_time );
(since C++11)

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
  (since C++11)

[edit] See also

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