Chapter 11: timer functions, 1 settimer(), Chapter 11 – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual

Page 52: Timer functions, Imer

Advertising
background image


52

Chapter 11:

Timer Functions

This group of functions covers VSE capability to work with timers –-- internal routines that
repeatedly measure a timing intervals between different events.

Using VSE Timer Functions is a stage-by-stage process of ‘Set the Timer’, followed by
‘Get the Timer Time’ and finally ‘Kill the Timer’. All three stages are interdependent on each
other using a unique timer identifier, which can be any user-defined positive integer.

Prototypes for each of the functions, along with their corresponding usage explanations, are
provided below.

11.1 SetTimer()

Sets/starts timer for timing calculation from the event where this function was called.


Format :

SendTimer( timer_id = 0)



Parameter

timer_id

Unique timer identifier (user-defined positive integer)

Example

SetTimer(0); # Start timing for timer with id = 0;

SetTimer(23); # Start timing for timer with id = 23;


Remark

If this function is called a second time with the same timer id, it resets the timer and starts
timing calculations again from the point where it was called.


















Advertising