Function Sleep
(
sleep < time > )
Parameters
time
Time, in seconds, to sleep.
Description
The function puts the calling thread to sleep for the requested period of time. Only the calling thread is
put to sleep. Other threads within the same process can still execute.
Notes
There is usually a system dependent minimum time for which it is possible to sleep. This time is
generally in the range 1 ms to 20 ms, depending on thread sheduling time slot intervals etc. Using a
shorter time as a parameter to glfwSleep can give one of two results: either the thread will sleep for the
minimum possible sleep time, or the thread will not sleep at all (glfwSleep returns immediately). The
latter should only happen when very short sleep times are specified, if at all.