3 isgreatertime(), 4 istimeininterval(), Reater – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual

Page 57: Nterval

Advertising
background image


57

13.3 IsGreaterTime()

Verifies whether or not one VSE time object is greater than the other VSE time object.


Format :

IsGreaterTime (time1, time2)


Return values

Returns 1 if time_1 is greater than time_2. Returns 0 otherwise.

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(500);

If( IsGreaterTime ( t1, t2 ) ) DoSomething();

13.4 IsTimeInInterval()

Verifies that a VSE time object is greater than some VSE time object and less than the other
VSE time object.


Format :

IsTimeInInterval( min_time, time, max_time )


Return values

Returns 1 if min_time <= time <= max_time. Returns 0 otherwise.

Parameters

min_time

VSE time object representing the first time interval


max_time

VSE time object representing the second time interval


Example

t1 = Time(100);

t = Time(400);
t2 = Time(500);

If( IsTimeInInterval ( t1, t, t2 ) ) DoSomething();

Advertising