3 multimebyint(), 4 divtimebyint() – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual
Page 55
55
12.3 MulTimeByInt()
Multiplies VSE time object by integer value.
Format :
MulTimeByInt (time, mult)
Return values
Returns VSE time object representing the time interval equal to the product of time * mult.
Parameters
time
VSE time object
mult
multiplier, integer value
Example
t = Time(2, 200); # 2 seconds 200 nanoseconds
t1 = MulTimeByInt ( t, 2 ) # Returns t * 2 = 4 sec 400 ns.
12.4 DivTimeByInt()
Divides VSE time object by integer value.
Format :
DivTimeByInt (time, div)
Return values
Returns VSE time object representing the time interval equal to the quotient of time / div.
Parameters
time
VSE time object
div
divisor, integer value
Example
t = Time(2, 200); # 2 seconds 200 nanoseconds
t1 = DivTimeByInt ( t, 2 ) # Returns t / 2 = 1 sec 100 ns.