sleep, sleep countdown

Prev Next

Function Names

sleep, sleep countdown

Description

The program will sleep for a specified number of seconds. The granularity is 0.001, i.e. milliseconds. The ... countdown suffix will output the remaining time to sleep once per second.

Call as: procedure

Parameter count

1

Parameters

No.TypeDescription
1
input
numeral Time

Time in seconds. Granularity is in ms, e.g. sleep(0.03) sleeps for 30 milliseconds.

2
input
string Prompt

Prompts a message that sleeping is in progress

Examples

      sleep countdown (3, "Waiting ";

Output

Software will display a down-counting number on the same row

See also

wait
wait countdown
sleep until
sleep until countdown