TIMER

System Testing Test Script Language.

Syntax

TIMER <identifier>

Description

The TIMER instruction lets you define a timer (which automatically starts after being defined).

A timer <identifier> can be declared once in the same block. The scope of an identifier is its definition block. For example, an identifier declared in an exception block can only be used in this block. However, you may use an identifier declared in the global block in all the other blocks.

Example

#static int id_connexion;

#static int Synchro;

#static int buffer;

TIMER globalTime

PROC dummy   

TIMER procTime

END PROC

SCENARIO TEST_1   

FAMILY nominal   

#unsigned long C_var_Time = TIME (globalTime);   

...   

PRINT time, TIME (globalTime)

END SCENARIO

Related Topics

TIMERESET