Returns the uptime of the server in seconds (to at least 4 decimal places)
You should use this function for timing in-game events but not for real-world events.
This is internally defined as a float, and as such it will be affected by precision loss if your server uptime is more than 6 hours, which will cause jittery movement of players and props and inaccuracy of timers, it is highly encouraged to refresh or change the map when that happens (a server restart is not necessary).
Issue Tracker: #3026
Simple delay timer.
local delay = 0 hook.Add( "Think", "CurTimeDelay", function() if CurTime() < delay then return end print( "This message will repeat every 5 seconds." ) delay = CurTime() + 5 end)