/
wait

wait

Description

Use this command to create a time delay (specified in ms). It can be used after a command that is known to take a while to complete, and one that needs to be completed for future commands in the script, i.e., waiting for the system to connect.

Functional area

Interface

Command syntax

Syntax

wait milliseconds

Arguments

Name Type Required Comments
milliseconds int yes The time that the script will pause on the command, eg, 3000 is 3 seconds.

Flags

None

Return value

void

Examples

//print to log the time at the beginning and end of the script
int $TimeNow = `getSystemTime`;
print $TimeNow; 
wait 3000;
$TimeNow = `getSystemTime`;print $TimeNow; 
//The log shows 2 numbers that have a difference of 3
//meaning 3 seconds have elapsed