Results in the following text on the terminal:
5 7
57
12
The PRINT statement can also be used directly in the Command line application, as well as in a
BASIC program.
4.9.2 DELAY statement
Waits a specified number of milliseconds before continuing program execution.
Syntax:
DELAY <milliseconds expression>
Example:
DELAY 100
Waits 100 milliseconds (0.1 seconds).
4.9.3 SLEEP statement
Causes QDOS to sleep for a specified time, then wake up and resume execution at the next
program line.
Syntax:
SLEEP <interval duration expression> <start minute expression>
The SLEEP statement has two parameters, which determine the time to wake up. Both are
expressed as a number of minutes. The first parameter is an interval duration parameter. The
second parameter specifies how many minutes past the hour to start the interval.
This is best illustrated by an example:
SLEEP 10 4
The two parameters here are 10 minutes and 4 minutes. This statement sets wakeup times every
10 minutes, starting at 4 minutes past the hour. The wakeup times will therefore
be :04, :14, :24, :34, :44 and :54 minutes past each hour.
When the command is executed, the computer calculates the next wakeup time after the current
time. For example, if the current time is 10:58:32 when this program line is executed, the computer
will sleep until 11:04:00.
The SLEEP command is used when you need to start the following program line at a precise time.
But it is also useful because when the computer is sleeping, power consumption is low.
U4B operating manual Rev 1.00
38
Содержание U4B Ultimate4
Страница 54: ...U4B operating manual Rev 1 00 54...