Titan



timer


The keyword is used to declare timers in the module control part, test cases, functions and altsteps. These timers are considered as local. 
Additionally, global timers can be declared in component type definitions.

Related keywords:


timer timer_identifier [:= default_value ];


It is possible to define an array of timers.


timer timer_identifier [array_dimension] [:= default_value_list ];


Example 1:

timer T_tidsoevervakning;

The global timer T_tidsoevervakning is declared.


Example 2:

timer Tl_tiempo := 5.5E-2;

The local timer Tl_tiempo is declared and given the initial value 55 ms.


Example 3:

timer T_tempilo := 5E-3, T_tijd;

Two global timers are defined. T_tempilo gets the default value of 5 ms, whereas T_tijd has no default value.


Example 4:

timer Tl_temporisation[4] := {-, 1E-1, -, -, -};

The array of  local timers declared is called Tl_temporisation and consists of five timers. The second timer has the default value of 100 ms, the others have no default value. 



BNF definition of timer