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.