os.clock
From GMod Wiki
Function | |
Syntax |
os.clock( ) Where is this used? |
Description: | |
Returns an approximation of the amount in seconds(with 3 decimals) of CPU time used by the program. | |
Returns: | String |
Part of Library: | os |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Os.clock]Os.clock [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This is not _CurTime() from GMod 9 - this returns how long a Garry's Mod server or client has been running.
- Technically, if this returns the amount of CPU time used by Garry's Mod, this could be affected if multi-core rendering is turned on (two cores = 2x the CPU time)