XenoGuard Documentation

Stopwatch Stop

Actions » Programming » Time » Stopwatch Stop

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


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

Parameters:

The action 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 action 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