sleep

Make the current thread sleep for a given duration.

sleep is the best way to block a program or one of its threads, as it doesn't consume any CPU power.

void
sleep
()

Parameters

duration Time

The length of time to sleep for

Meta