In your test sequence, you can access the following parameters to retrieve the start date and time of your test:
RunState.Root.Locals.StartTime
RunState.Root.Locals.StartDate
These parameters are dynamic properties (part of RunState
) and are available only during executions that use a process model.
If you are not using a process model, you must manually record a timestamp at your desired "time zero." Later, capture another timestamp (time t) and calculate the elapsed time by subtracting the two. TestStand provides various time functions to facilitate this, accessible under the "Time" category in the Operators tab of the Expression Browser.
