G.FrameTime

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.FrameTime]G.FrameTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints your FPS.
Used onNewerClient.png
Code
print( 1 / FrameTime() )
OutputPrints your FPS.


See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox