Difference between revisions of "Os.clock"
From ComputerCraft Wiki
m (Updated references from "os" to "OS") |
(Changing float to number) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=os.clock | |name=os.clock | ||
− | |returns= | + | |returns={{type|number}}, amount of time the computercraft computer has been running, in seconds. |
|api=OS | |api=OS | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 11:54, 18 July 2013
Function os.clock | |
Returns the amount of time the Computer has been running, note that this may not be the amount of time the program has been running. the function os.clock() is useful for debugging, see the example. | |
Syntax | os.clock() |
Returns | number, amount of time the computercraft computer has been running, in seconds. |
Part of | ComputerCraft |
API | OS |