Computer Access Technology Corporation
IB
Tracer
Verification Script Engine Manual, version 1.0
Page 22 of 35
Parameters:
time_1
- VSE time object presenting first time interval
time_2
- VSE time object presenting second time interval
Example:
t1 = Time(100);
t2 = Time(2, 200);
t3 = AddTime( t1, t2 ) # - returns VSE time object = 2 sec 300 ns.
11.2 SubtractTime()
Subtract two VSE time objects
Format
:
SubtractTime (
time1, time2
)
Return values:
Returns VSE time object presenting time interval equal to subtraction of time_1 and time_2
Parameters:
time_1
- VSE time object presenting first time interval
time_2
- VSE time object presenting second time interval
Example:
t1 = Time(100);
t2 = Time(2, 200);
t3 = SubtractTime ( t2, t1 ) # - returns VSE time object = 2 sec 100 ns.
11.3 MulTimeByInt()
Multiplies VSE time object by integer value
Format
:
MulTimeByInt (
time, mult
)
Return values:
Returns VSE time object presenting time interval equal to time * mult
Parameters:
time
- VSE time object
mult
- multiplier, integer value
Example:
t = Time(2, 200);
t1 = MulTimeByInt ( t, 2 ) # - returns VSE time object = 4 sec 400 ns.