Garry's Mod Wiki

os.clock

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.

Special Pages


Wikis

?

Render Time: 25ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 12
Render Body 0
Render Sidebar 6