Sleep: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
   SLEEP(<seconds>)  
   Sleep (seconds)  


The '''Sleep''' [[internal function]] causes the processor to wait the specified number of seconds before continuing execution. It does not tie up the processor while waiting, which is especially important for multi-user systems.
The '''Sleep''' [[internal function]] causes the processor to wait the specified number of seconds before continuing execution. It does not tie up the processor while waiting, which is especially important for multi-user systems.
Line 8: Line 7:
====Example====
====Example====


  00010 let SLEEP(5) ! sleep for 5 secons
  00010 let SLEEP(5) ! sleep for 5 seconds


<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Latest revision as of 03:09, 22 May 2014

 SLEEP(<seconds>) 

The Sleep internal function causes the processor to wait the specified number of seconds before continuing execution. It does not tie up the processor while waiting, which is especially important for multi-user systems.

SLEEP now accepts decimal fractions of a second. Resolution accuracy is in milliseconds (up to 3 decimal places). The sleep parameter is still specified in seconds. Some DOS environments have a lower resolution than milliseconds.

Example

00010 let SLEEP(5) ! sleep for 5 seconds