G.FrameTime
From GMod Wiki
Function | |
Syntax |
FrameTime( ) Where is this used? |
Description: | |
Returns the time taken to render the last video frame clientside, or the delay between ticks serverside. | |
Returns: | Float |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.FrameTime]G.FrameTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints your FPS. |
---|---|
Used on | |
Code | print( 1 / FrameTime() ) |
Output | Prints your FPS. |