No edit summary |
No edit summary |
||
Line 57: | Line 57: | ||
=== Time ([[Type:Float|Float]]) === | === Time ([[Type:Float|Float]]) === | ||
Returns the amount of time since the stopwatch has been started, as a | Returns the amount of time since the stopwatch has been started, as a [[Type:Float|Float]] representing seconds before the decimal place and fractions of a second after the decimal place. If a [[Type:TimeSpan|TimeSpan]] is desired instead of a [[Type:Float|Float]], use the [[ProtoFlux:TimeSpanFromSeconds|TimeSpanFromSeconds]] node to convert for the appropriate resolution. | ||
=== IsRunning ([[Type:Bool|Bool]]) === | === IsRunning ([[Type:Bool|Bool]]) === |
Revision as of 15:04, 2 March 2024
A simple Stopwatch node.
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Inputs
Start (Call)
Call this to Start the Stopwatch => puts the Stopwatch into a Running state. Does nothing if the Stopwatch is already in the Running state. If Stopwatch Reset was not called, Time Output will continue from the value it was when it was last in a Stopped state.
Stop (Call)
Call this to Stop the Stopwatch => puts the Stopwatch into a Stopped state. (default) Does nothing if the Stopwatch is already in the Stopped state. If Stopwatch Reset was not called, Time Output will be the value it was when it was last in a Stopped state. (default 0)
Reset (Call)
Call this to Reset the Stopwatch => puts the Stopwatch into a Stopped state. (default) Calling Reset sets the Time Output to zero (0).
Outputs
OnStarted (Continuation)
Sends an impulse after a Start (Call) has been impulsed.
OnStopped (Continuation)
Sends an impulse after a Stop (Call) has been impulsed.
OnReset (Continuation)
Sends an impulse after a Reset (Call) has been impulsed.
Time (Float)
Returns the amount of time since the stopwatch has been started, as a Float representing seconds before the decimal place and fractions of a second after the decimal place. If a TimeSpan is desired instead of a Float, use the TimeSpanFromSeconds node to convert for the appropriate resolution.
IsRunning (Bool)
Is true if the Stopwatch is in a Running state and false if the Stopwatch is in a Stopped state.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.