For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sleep

Sleeps the current thread for the specified duration in millisecons

Method Signature

Sleep(duration=[long])

Arguments

Argument
Type
Required
Description
Default

duration

long

true

The amount of time, in milliseconds to sleep the thread

Examples

Sleep for 5 seconds

Outputs the current date/time, sleeps for 5 seconds, then outputs the current date/time again.

<bx:script>
	writeOutput( now() );
	writeOutput( "<br />" );
	sleep( 5000 );
	writeOutput( now() );
</bx:script>

Additional Examples

Run Example

Last updated

Was this helpful?