TIMER instruction
System Testing for C
The TIMER instruction declares a timer in the test script.
You may declare a timer in any test script block: global, initialization, termination, exception, procedure, or scenario.
The timer lasts as long as the block in which the timer is defined. This means that a timer defined in the global block can be used until the end of the test script.
You may define multiple timers in the same test script. The timer starts immediately after its declaration.
The unit of the timer unit is defined during execution of the application, with the WAITTIL and WTIME instructions.
Example
HEADER "Socket validation", "1.0", "beta"
TIMER globalTime
PROC first
TIMER firstProc
...
END PROC
SCENARIO second
SCENARIO level2
TIMER level2Scn
...
END SCENARIO
END SCENARIO
Related Topics
TIME Instruction | RESET Instruction | PRINT Instruction | PAUSE Instruction