os.clock

Returns the time since the Computer was booted in seconds.

ExampleGet the running Time
Print the time since the Computer is running in seconds.
Code
print("The Computer is running since "..os.clock().." seconds")
Output
The Computer is running since 10 seconds

os.clock
Function
Syntax
os.clock()
Returns number
API os
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.