Skip to content

WAIT

Suspend Operation for Specified Time

This directive suspends program execution for a specified period of time.

WAIT #-of-seconds
#-of-seconds
is an integer in the range of 0 to 65535 signifying the number of seconds to wait.
WAIT fraction-of-second

fraction-of-second is a decimal from .00 to .99 signifying the fraction of a second to wait.

The value of seconds signifies the maximum number of seconds that the WAIT suspends program execution. Seconds - 1 represents the minimum number of seconds. In other words, the actual wait period is the value of seconds, +0/-1.

WAIT for a fraction of a second may not exceed two decimal places. If a particular Operating System does not support timers, the value is automatically changed to 1.

WAIT 0 is automatically changed to WAIT .01 if available, otherwise to WAIT 1.

Mixed numbers are not allowed and will produce an error 41.

WAIT 23

Suspends program execution for 22 to 23 seconds.

WAIT .25

Suspends program execution for .25 seconds.

WAIT 1/3

Will produce an error 41 if PRECISION is set greater than 2.

WAIT 0

Suspends program execution for .01 seconds.

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF