G.RealFrameTime

From GMod Wiki

Jump to: navigation, search
Function
Syntax RealFrameTime( )
Where is this used?
Description:
Returns the time it took to render the previous frame.
Returns: Float frametime
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.RealFrameTime]G.RealFrameTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will print the clients FPS.
Used onNewerClient.png
Code
print( 1 / RealFrameTime() );
Output113.77777777778


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox