sleep

The sleep function pauses the thread.

Syntax

sleep( milliseconds )

Arguments

Argument Description
milliseconds (number) The number of milliseconds for which to pause the current thread.