G.FrameTime

From GMod Wiki

Revision as of 20:12, 12 February 2011 by JohnnyThunders (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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