void Sleep(real)
Return Type: void
Parameters: real
Description:
This function halts script execution for the number of seconds indicated
by the input parameter. This can accept fractions of a second.
void Sleep(int)
Return Type: void
Parameters: int
Description:
This function halts script execution for the number of seconds indicated
by the input parameter. This can only accept full integer seconds.
To slow down the execution speed of the whole script, see the SetDelay
command.
Example
Code |
1 >>real
a; real b;
2 >>clock(1); Sleep(1.5); a=clock(0); Sleep(1); b=clock(0);
3 >>disp(a);
1.50000000000000
4 >>disp(b);
2.50000000000000 |