event.source

Event timer
Revision Release 2024.3703
Keywords timer, source
See also timer

Overview

A reference to the timer registered to send the event. This may be useful if you have multiple timers calling the same listener.

Example

local function listener( event )
    -- Print the reference to the timer
    print( event.source )
end

timer.performWithDelay( 1000, listener )