Library time
Deals with time and timers.
Functions
| curTime() | Returns the current synchronised game time. |
| frameTime() | Returns time between frames on the client and ticks on the server. |
| realFrameTime() | Returns the time between frames. |
| realTime() | Returns the time since the map first loaded. |
| sysTime() | Returns the system time, a highly precise value useful for timing operations. |
Functions
- time.curTime()
-
Returns the current synchronised game time.
Environment:
Shared - time.frameTime()
-
Returns time between frames on the client and ticks on the server.
Environment:
Shared - time.realFrameTime()
-
Returns the time between frames. The difference between this and frameTime() is that this is not affected by host_timescale.
Environment:
Client - time.realTime()
-
Returns the time since the map first loaded.
Environment:
Shared - time.sysTime()
-
Returns the system time, a highly precise value useful for timing operations.
Environment:
Shared