RealTime

From Garry's Mod
Jump to: navigation, search
 RealTime( )

Description

Returns the uptime of the game/server in seconds (to at least 4 decimal places)

NOTE

This is not synchronised or affected by the game.

NOTE

This will be affected by precision loss if the uptime is more than 30+(?) days, and effectively cease to be functional after 50+(?) days.

You should use this function (or SysTime) for timing real-world events such as user interaction, but not for timing game events such as animations.

See also: CurTime, SysTime

Returns

number

Uptime of the game/server.
Personal tools
Navigation