Sleep()
Causes the current thread to stop processing for a specified period of time.
Sleep( duration=number );
Returns: void
| Argument | Description |
|---|---|
|
duration
number,
required
|
edit
Time, in milliseconds, to stop processing the thread. |
Examples
edittimer 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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)