Garry's Mod Wiki

os.clock

number os.clock()

Description

Returns the approximate cpu time the application ran. See also SysTime

This function has different precision on Linux (1/100).

Returns

1 number
runtime

Example

Prints the amount of time since Garry's Mod has been open to the console.

Page Links


Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 4
Generate Html 1
SaveChanges (1) 8
Render Body 0
Render Sidebar 6