- string: The event name.
- number: The ID of the timer that finished.
Starts a timer and then prints its ID:
local timerID = os.startTimer(2) local event, id repeat event, id = os.pullEvent("timer") until id == timerID print("Timer with ID " .. id .. " was fired")
- os.startTimer To start a timer.