G.CurTime
From GMod Wiki
Function | |
Syntax |
CurTime( ) Where is this used? |
Description: | |
Gets the current time in seconds since server start. Mainly used for timers. Only runs while players are connected. | |
Returns: | Number |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.CurTime]G.CurTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Outputs current time to console. |
---|---|
Used on | |
Code | Msg("Current time: " .. CurTime() .. "\n") |
Output | N/A |
Additional Notes
- Affected by host_timescale. (e.g. setting it to 0.5 makes CurTime() go twice as slow)