12 time construction functions, 1 time() – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual
Page 34
Verification Script Engine Reference Manual
29
12 Time construction functions
This group of functions is used to construct VSE time objects.
12.1 Time()
Constructs 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”.