XenoGuard 4.0 Documentation

Stopwatch Stop

ActionStep Reference » Programming » Time » Stopwatch Stop

The ActionStep Stopwatch Stop ends the measuring of the elapsed time for the stopwatch.This ActionStep is coupled with the Stopwatch Start ActionStep to set its name.


[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. In the Time node, select the Stopwatch Stop ActionStep.

Parameters:

The ActionStep has the following input parameters:


NAME DESCRIPTION
Name Sets the name of the stopwatch.

Allowed Context Scopes 
[Local, Global]
Interim Measures the intermediate time.

Allowed Value [Boolean]

Results:

The ActionStep returns the following results:


NAME
DESCRIPTION
Time [ms] Contains the measured elapsed time.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Example 1 (Ends a stopwatch timer based on a set time):

This example passes the value of the local Spin variable with Unsigned Number as data type. The value of the variable is sent to the created stopwatch named Switch Timer. The stored elapsed time after it has ended is then output via Write Text.


See other Time operations:

Wait Milliseconds
Stopwatch Start
Date/Time Show
Date/Time Subtract
Date/Time Offset
Date/Time to Ticks
Date/Time From Ticks