Skip to content

Timer:countingSource

since 26.1.0

Get / Set the counting source of the timer.

local source = timer:countingSource([source])

Parameters

Name Type Required Description
source Source optional

Returns

source (Source)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:countingSource()