Sleep
|
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Program Flow > Sleep |
Description
Stops program execution for the passed Milliseconds time.
Syntax
n = Sleep(Milliseconds)
n = Sleep Milliseconds
Returns
Number of milliseconds passed to the function.
Parameters
Name |
Type |
Optional |
Meaning |
Milliseconds |
Number |
No |
Number of milliseconds to wait. |
Remarks
Sleep will stop script execution for the indicate milliseconds.
Restrictions
Sleep will also block UI message pump.
Consider also Wait function that will not block UI message pump
See also
Examples