os.sleep

From ComputerCraft Wiki
Revision as of 03:08, 12 May 2012 by Techzune (Talk | contribs) (Added the function template.)

Jump to: navigation, search


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 )