Skip to content

timer

Methods

start()

Starts the timer

1
tmr:start()

stop()

Stops the timer

1
tmr:stop()

is_active(): bool

Returns true if timer is currently active

1
2
if tmr:is_active() then
end

set_delay(dl)

Type Name Description Default
number dl New delay none

Sets new timer delay

1
tmr:set_delay(500)

run_once()

Runs timer only once after delay has been passed

1
tmr:run_once()