Garry's Mod Wiki

RealTime

number RealTime()

Description

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

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

Changing the map will not fix it like it does with CurTime. A server restart is necessary.

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

1 number
Uptime of the game/server.

Page Links


Special Pages


Wikis

?

Render Time: 23ms

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