Difference between revisions of "Os.sleep"

From ComputerCraft Wiki
Jump to: navigation, search
(Added the function template.)
(No difference)

Revision as of 07:35, 30 May 2012


Grid Redstone.png  Function os.sleep
Pauses the computer for a number of seconds
Syntax os.sleep(timeout)
Returns nil
Part of ComputerCraft
API os

Examples

Grid paper.png  Example
Pause for 3 seconds
Code
os.sleep( 3 )


You can also just use sleep( timeout )