import{_ as t,a as r,b as a,ag as i}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"Timer","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Timer.md","filePath":"references/elements/Timer.md","lastUpdated":1757844696000}'),s={name:"references/elements/Timer.md"};function d(n,e,o,l,h,m){return a(),r("div",null,e[0]||(e[0]=[i('

Timer

The Timer is a non-visual element that can be used to perform actions at specific intervals.

Extends: BaseElement

Properties

PropertyTypeDefaultDescription
intervalnumber1The interval in seconds at which the timer will trigger its action.
actionfunctionfunctionThe action to be performed when the timer triggers.
runningbooleanfalseIndicates whether the timer is currently running or not.
amountnumber-1The amount of time the timer should run.

Functions

MethodReturnsDescription
Timer:startTimerStarts the timer
Timer:stopTimerStops the timer

Timer:start(self)

Starts the timer with the specified interval.

Parameters

Returns

Timer:stop(self)

Stops the timer if it is currently running.

Parameters

Returns

',19)]))}const f=t(s,[["render",d]]);export{u as __pageData,f as default};