Developer Documentation Library > UNICOM Intelligence Function Library > Miscellaneous functions > Sleep
 
Sleep
Suspends the thread in which it is called.
Syntax
Sleep(<value>)
Parameters
<value>
Type: Long
Number of milliseconds to suspend the thread for.
Notes
This function suspends the thread in which the function is called for at least the time specified by <value>. If there are other threads in the process, they will continue to execute. After <value> milliseconds have elapsed, the next time the system is ready to resume the thread that was suspended, it will continue execution and this function will return.
The return value is not useful.
Example
The following mrScriptBasic example suspends the thread for at least two seconds:
Sleep(2000)
See also
Miscellaneous functions