Difference between revisions of "Os.clock"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
m (Updated references from "os" to "OS") |
||
Line 3: | Line 3: | ||
|name=os.clock | |name=os.clock | ||
|returns=[[float (type)|float]], amount of time the computercraft computer has been running, in seconds. | |returns=[[float (type)|float]], amount of time the computercraft computer has been running, in seconds. | ||
− | |api= | + | |api=OS |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=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. | |desc=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. |
Revision as of 14:09, 30 November 2012
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 | float, amount of time the computercraft computer has been running, in seconds. |
Part of | ComputerCraft |
API | OS |