SLEEP: Suspending Execution for a Given Number of Seconds

How to:

The SLEEP function suspends execution for the number of seconds you specify as its input argument.

This function is only supported in Dialogue Manager. It is useful when you need to wait to start a specific procedure or application.


Top of page

x
Syntax: How to Suspend Execution for a Specified Number of Seconds
SLEEP(delay, output);

where:

delay

Numeric

Is the number of seconds to delay execution. The number can be specified down to the millisecond.

output

Numeric

The value returned is the same value you specify for delay.



Example: Suspending Execution for Four Seconds

SLEEP suspends execution for four seconds:

-SET &DELAY = SLEEP(4.0, 'I2'); 

iWay Software