Sleep: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
Sleep milliseconds | Sleep ''milliseconds'' | ||
== Description == | == Description == | ||
Sleep pauses execution of the program for a period of time equal to milliseconds. The program does not yield the event loop: execution will continue on the next statement. | Sleep pauses execution of the program for a period of time equal to milliseconds. The program does not yield the event loop: execution will continue on the next statement. In most cases, [[SetTimeout|SetTimeOut]]() will be more useful. | ||
== Example == | == Example == |
Revision as of 15:51, 9 April 2013
Sleep milliseconds
Description
Sleep pauses execution of the program for a period of time equal to milliseconds. The program does not yield the event loop: execution will continue on the next statement. In most cases, SetTimeOut() will be more useful.
Example
Rem Sleep Example 'Pause execution for 5 seconds Sleep 5000