beautypg.com

Time calculation functions, Addtime(), 12 time calculation functions – Teledyne LeCroy UWBTracer Verification Script Engine Manual User Manual

Page 52: 1 addtime()

background image

LeCroy Corporation

Verification Script Engine Manual, version 2.2





12 Time Calculation Functions


This group of functions covers VSE capability to work with “time”, the VSE time objects.

12.1 AddTime()


Adds two VSE time objects.


Format:

AddTime(time1, time2)


Return values:

Returns a VSE time object representing a time interval equal to sum of time_1 and time_2


Parameters:

time_1

VSE time object representing the first time interval


time_2

VSE time object representing the second time interval

Example:

t1 = Time(100);

t2 = Time(2, 200);

t3 = AddTime(t1, t2) # Returns VSE time object = 2 sec 300 ns.

Page 52 of 95