beautypg.com

12 time calculation functions, 1 addtime(), Time calculation functions – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 66

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 66 of 115



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)


Parameters:

time_1

VSE time object representing the first time interval


time_2

VSE time object representing the second time interval

Return values:

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


Example:

t1 = Time(100);

t2 = Time(2, 200);

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