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.
See Implementation
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.