Ymbols, Time calculation functions – Teledyne LeCroy IBTracer 4X - IBTracer Verification Script Engine Users Manual User Manual
Page 21

Computer Access Technology Corporation
IBTracer Verification Script Engine Manual, version 1.0
Page 21 of 35
Parameters:
nanoseconds – number of nanoseconds in specified time
seconds – number of seconds in specified time
Example:
Time ( 50 * 1000 ); # - create time object of 50 microseconds
Time (3, 100);
# - create time object of 3 seconds and 100 nanoseconds
Time( 3 * MICRO_SECS ); # - create time object of 3 microseconds
Time( 4 * MILLI_SECS ); # - create time object of 4 milliseconds
NOTE: MICRO_SECS and MILLI_SECS
are constants defined in
“VS_constants.inc”.
10.2 TimeFromSymbols()
Constructs VSE time object by integer value presenting number of IB symbols
Format :
TimeFromSymbols (symbols)
Return values:
Returns VSE time object presenting time equal to symbols number of IB symbols.
Parameters:
symbols – number of IB symbols
Example:
TimeFromSymbols(300) # - create time object equal to 300 IB symbols
11. Time calculation functions
This group of functions covers VSE capability to work with “time” – VSE time objects.
11.1 AddTime()
Adds two VSE time objects
Format :
AddTime(time1, time2)
Return values:
Returns VSE time object presenting time interval equal to sum of time_1 and time_2