engine.ServerFrameTime

From Garry's Mod
Revision as of 12:00, 5 July 2018 by ImTiara (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 engine.ServerFrameTime( )

Contents

Description

Returns an estimate of the server's performance. Equivalent to calling FrameTime from the server, according to source code.

Returns

number

Frame time

Returns

number

Server Framerate Std Deviation

Examples

Example

Get the servers tickrate. Can be used to indicate lag

print("Server Tick: "..(1/engine.ServerFrameTime()))

Output:

Server Tick: 66.666668156783
Personal tools
Navigation