v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha
v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha

Time Construction Functions

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

Time()

Constructs a verification script time object.

Time(nanoseconds)
Time(seconds, nanoseconds)

Parameters

nanoseconds

Number of nanoseconds in specified time

seconds

Number of seconds in specified time

Return values

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

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.