beautypg.com

Time construction functions, Time(), 10 time construction functions – Teledyne LeCroy SATracer 3G Verification Script Engine manual User Manual

Page 42: 1 time()

background image

LeCroy Corporation

Verification Script Engine Reference Manual

Version 1.01

10 Time Construction Functions


This group of functions are used to construct VSE time objects.

10.1 Time()

Constructs a verification script time object.


Format :

Time(nanoseconds)

Time(seconds, nanoseconds)

Return values:

First function returns [0, nanoseconds], second one returns [seconds, nanoseconds]


Parameters:

nanoseconds – number of nanoseconds in specified time
seconds – number of seconds in specified time

Example:

Time ( 50 * 1000 ); # - create time object of 50 microseconds

Time (3, 100);

# - create time object of 3 seconds and 100

nanoseconds

Time( 3 * MICRO_SECS ); # - create time object of 3 microseconds

Time( 4 * MILLI_SECS ); # - create time object of 4 milliseconds

NOTE: MICRO_SECS and MILLI_SECS are constants defined in VS_constants.inc.

37