Sleep

Causes the current thread to stop processing for a specified period of time.

Returns: void

Usage

Sleep( duration )

Arguments

Argument Description
duration
(number, required)

Time, in milliseconds, to stop processing the thread.

Examples

timer label='Sleep for 1 second' type='inline' {
    sleep( 1000 );
};
// Sleep for 1 second: 1000ms

writeOutput('<br>');

timer label='Sleep for 2.5 seconds' type='inline' {
    sleep( 2500 );
};
// Sleep for 2.5 seconds: 2500ms