Timer

Properties

You can set:

  • The Name of the Timer

  • The Interval of the Timer, in seconds or milliseconds

  • Whether or not the Timer should Count Up

  • Whether the Timer should Loop, ie. if the Timer should reset itself once it fires

  • Whether the Timer is Enabled (this can be changed with blocks)

Event Blocks

When Timer Fires

Set something to happen when the Timer fires.

Function Blocks

Start Timer

Starts the Timer.

Stop Timer

Stops the Timer.

Properties Blocks

Get Time

Get time in seconds

If Count Up is false, returns remaining time from the Timer's interval in seconds.

If Count Up is true, returns elapsed time from the Timer's interval in seconds.

Get time in milliseconds

If Count Up is false, returns remaining time from the Timer's interval in milliseconds.

If Count Up is true, returns elapsed time from the Timer's interval in milliseconds.

Interval

Set Interval

Set interval of Timer in milliseconds.

Get Interval of Timer

Returns interval of Timer in milliseconds.

Count Up

Set Count Up

Set whether Count Up is enabled for this Timer.

Get Count Up

Returns true or false value for whether Count Up is enabled for this Timer.

Loops

Set Loops

If Loops = true, the timer will reset itself after it fires. If your interval is 10 seconds, the Timer will fire every 10 seconds.

If Loops = false, the timer will finish its current interval if it is in the middle of one, and will no longer fire. If your interval is 10s, the timer will finish its current 10 second interval, fire, and then stop.

Get Loops

Returns true or false value for whether Loops is enabled for this Timer.

Enabled

Set Enabled

Set whether the Timer is enabled.

Get Enabled

Returns true or false value for whether this Timer is enabled.

Last updated