qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SLEEP Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Suspends program execution.
 
SLEEP [seconds&]
 
    ■ seconds&    Number of seconds to suspend the program.
 
    ■ If seconds& is 0 or is omitted, the program is suspended until a key
      is pressed or a trapped event occurs.
 
Example:
    PRINT "Taking a 10-second nap..."
    SLEEP 10
    PRINT "Wake up!"
 
See Also    WAIT