Garry's Mod Wiki

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.

Output: runtime

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 12