os.clock

From Garry's Mod
Jump to: navigation, search
 os.clock( )

Contents

Description

Returns the approximate cpu time the application ran.

NOTE

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

Returns

number

runtime

Examples

Example

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

print(os.clock())

Output:

runtime
Personal tools
Navigation