Difference between revisions of "Os.sleep"
From ComputerCraft Wiki
(Added the function template.) |
|||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
− | + | {{Function | |
− | + | |name=os.sleep | |
− | + | |args=timeout | |
− | + | |api=os | |
− | + | |addon=ComputerCraft | |
− | + | |desc=Pauses the computer for a number of seconds | |
− | + | |examples= | |
− | + | {{Example | |
− | + | |desc=Pause for 3 seconds | |
+ | |code=os.sleep( 3 ) | ||
+ | }} | ||
+ | }} | ||
+ | You can also just use sleep( timeout ) |
Revision as of 03:08, 12 May 2012
Function os.sleep | |
Pauses the computer for a number of seconds | |
Syntax | os.sleep(timeout) |
Returns | nil |
Part of | ComputerCraft |
API | os |
Examples
Example | |
Pause for 3 seconds | |
Code |
os.sleep( 3 ) |
You can also just use sleep( timeout )