QBasic 1.1: SLEEP Statement

Syntax

SLEEP [seconds&]

Description / Parameter(s)

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!"