Skip to content

model.createTimer

since 1.1.0

Create a timer.

model.createTimer()

Parameters

None.

Returns

the new timer

Examples

From the official Ethos documentation
local timer = model.createTimer()
timer:name("My Timer")
timer:direction(-1)
timer:value(60)