beautypg.com

2 subtracttime(), Ubtract – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 67

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 67 of 115



12.2 SubtractTime()


Subtracts two VSE time objects.


Format:

SubtractTime (time1, time2)


Parameters:

time_1

VSE time object presenting first time interval


time_2

VSE time object presenting second time interval

Return values:

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


Example:

t1 = Time(100);

t2 = Time(2, 200);

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