Scripting > UNICOM Intelligence Function Library > Miscellaneous functions > Sleep
 
Sleep
Suspends the thread in which it is called.
Syntax
Sleep(Val)
Parameters
Val
Type: Long
Number of milliseconds to suspend the thread for.
Remarks
This function suspends the thread in which the function is called for at least the time specified by Val. If there are other threads in the process, they will continue to execute. After Val 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