public struct TimerSettings


The settings for a timer.


intervalThe amount of seconds between tick intervals. A tick event is invoked every interval.
durationThe amount of seconds the timer runs for. A completion event is invoked after the duration has elapsed, and the timer is disabled. The timer can be re-enabled to run again with the same duration.
resetElapsedOnEnableResets the previous amount of time elapsed when the timer is re-enabled. Leaving this off allows the timer to be paused and resumed by disabling and enabling the timer behavior.
resetCountersOnEnableResets the timer counters when the timer is re-enabled, including the number of times ticked, the number of times completed, and the timestamps of those events.
useUnscaledTimeAdvances the timer using unscaled time.