- Documentation
- Shared functions
- getTimerInfo
Function
getTimerInfo
Returns a description of the timer as a table: remaining, repeats, interval, paused and resource.
Syntax
table getTimerInfo(timer timer)Arguments
timertimer- The timer.
Returns
The description table or false.
Example
local t = setTimer(function() end, 1000, 0)
setTimerPaused(t, true)
local info = getTimerInfo(t)
print(info.paused, info.remaining, info.interval)