Seconds Function

Syntax

Number Seconds(Boolean returnSecondsSinceStartup = True)

Purpose

Note: In certain situations, the TestStand Seconds(True) function returns incorrect elapsed time values when the operating system timer is running slower than actual time. Visit ni.com/info and enter the Info Code tstime for more information about this issue.This function returns the number of seconds that have elapsed since an initial base time.

Parameters

returnSecondsSinceStartup as Boolean

(Optional) Specifies the base time from which the function determines the current time in seconds. If you pass the default parameter of True or if you do not pass a parameter, the function returns the number of seconds since the application initialized the TestStand Engine. This option provides the greatest resolution in the numeric representation of the time. The time resolution is typically one millisecond or smaller, and can be as small as the cpu clock interval. If you pass False, the function returns the number of seconds elapsed since midnight, January 1, 1970, universal coordinated time (UTC). UTC is also known as Greenwich mean time (GMT). This option provides an absolute time that you can compare to times you record in other application sessions or on other computers. The time resolution is no smaller than one millisecond.