Community ProtoFlux Library/AmasterAmaster/Debug/Tick Delta: Difference between revisions
From Resonite Wiki
Created a page for the Tick Delta custom node. |
Style - Forgot it was "Call". |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
{"Name":"Next", "Type":"Continuation"}, | {"Name":"Next", "Type":"Continuation"}, | ||
{"Name":"OnRegester", "Type":"Continuation"}, | {"Name":"OnRegester", "Type":"Continuation"}, | ||
{"Name":"TickDelta", "Type":" | {"Name":"TickDelta", "Type":"long"}, | ||
{"Name":"TimeSpanFromTick", "Type":"TimeSpan"} | {"Name":"TimeSpanFromTick", "Type":"TimeSpan"} | ||
] | ] | ||
Line 24: | Line 24: | ||
== Inputs == | == Inputs == | ||
=== * ([[Impulses]]) === | === * ([[Impulses|Call]]) === | ||
Calls this node to compare against the registered tick and now. | Calls this node to compare against the registered tick and now. |
Latest revision as of 03:21, 23 August 2024
Tick Delta
Amaster's Debug Library
The Tick Delta node acts like a pass through for ProtoFlux, and gets the current tick at this very moment when impulsed, however, this node does a comparison check against any previously registered tick and returns the results.
This is combined with the Register Current Tick node, to compare against the difference between the two ticks.
Inputs
* (Call)
Calls this node to compare against the registered tick and now.
Outputs
Next (Continuation)
Continues the code from here.
OnRegister (Continuation)
Sends and impulse when a new tick time is registered.
TickDelta (Long)
Returns the difference (or the delta) of the amount of ticks between when it was registered and now.
TimeSpanFromTick (TimeSpan)
Returns the timespan variant of the tick delta.