os.startTimer

From ComputerCraft
Jump to navigation Jump to search

os.startTimer
Function
Syntax
os.startTimer()
Returns number timerID
API os
Source CC:Tweaked (source)

Starts a Timer.

The Timer event is fired when the timer is finished.

You can stop the timer with os.cancelTimer.

ExampleExampleStarts a Timer
Starts a Timer with 5 seconds.
Code
os.startTimer(5)