[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.1.1 Wait (#W)

The Wait command takes one argument that specifies the number of milliseconds to wait.

Name:
Wait
Class:
Control
Code:
#W
Syntax:
#Wwaittime
waittime is a timelimit
Test Files:
WAIT_T01.IN: Tests basic operation

 
@CPress any key to wait 10 seconds (\#W10000)#R
Waiting...#W10000
Done.  Press any key to exit.#R

WAIT_B01.IN: Measures the overhead in 100 #W1000 waits

 
@CTiming overhead for 100 \#W1000 waits.
Please wait 100 seconds...
#Y[2,0]
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000#W1000
#Y[2,1]
@1010 100 \#W1000 waits took $SV5 milliseconds
@1210 Hit any key to exit#R

Examples:
input
#W100
cogsys
waits 100 milliseconds

input
#WV1
cogsys
waits for the number milliseconds specified in the variable V1



This document was generated on November, 24 2008 using texi2html