os.startTimer

The Timer event is fired when the timer is finished.

os.startTimer
Function
Syntax
os.startTimer(
  • timeout : number
)

Returns number timerID
API os
Source CC:Tweaked (source)

Starts a Timer.

You can stop the timer with os.cancelTimer.

ExampleStarts a Timer
Starts a Timer with 5 seconds.
Code
<nowiki>
os.startTimer(5)
    </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.