Stopwatch Provider
The Stopwatch Provider measures the time from a start event.
Configuration
-
Running Condition
If this condition changes to1
, the stopwatch starts, if it changes to0
it stops. -
Reset
If this condition changes to1
, the stopwatch resets, if the flyback condition is met. -
Enable Flyback
Enabled to reset the stopwatch while it is running, if disabled the stopwatch can only be reset while it is stopped.
Query
-
Status
Returns the status of the stopwatch.Text Numeric Description N/A
0
Stopwatch was not start yet
Excellent
1
Stopwatch is running
Good
2
Stopwatch is stopped
-
Elapsed Time
The elapsed time since the stopwatch was started. Return the duration time between start and end time.Text Numeric Duration in the format specified by Param 1
Duration value in Units specified by Param 1
-
Param 1
Repeating a token sets the leading zeros, e.g.ss
gives04
for 4 seconds.
Available Pattern Tokens:Token Duration element S
Milliseconds
s
Seconds
m
Minutes
H
Hours
d
Days
w
Weeks
'text'
Text content
E.g. use "HH:mm:ss" for an hour countdown with a second resolution.
For numeric output:
Param 1 Output S
Milliseconds
s
Seconds
m
Minutes
H
Hours
d
Days
w
Weeks
-
-
Starttime
The wall clock time of the last start event.Text Numeric Time in the format specified by Param 1
Milliseconds since 1970-01-01 00:00:00 UTC + Timezone
-
Param 1
The time format of the text representation. See Time Format for details.
If empty, the default ISO formatyyyy-MM-dd’T’HH:mm:ss.SSSxxx
is used.
-
-
Is Running
Returns1
if the stopwatch is running,0
if it is stopped. -
Set: Start/Stop
Query to start (1) or stop (`0
) the stopwatch by another provider or facelet. E.g. can be used by the Button facelet to start the stopwatch. -
Set: Toggle Start/Stop
Query to start or stop the stopwatch by another provider or facelet.
E.g. can be used by the Button facelet to start or stop the stopwatch. -
Set: Reset
Query to reset the stopwatch by another provider or facelet.
E.g. can be used by the Button facelet to reset the stopwatch.