Sleep()
Causes the current thread to stop processing for a specified period of time.
Sleep( duration=number );
Returns: void
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
See also
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)