engine/ServerFrameTime

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 11: Line 11:
 
|type=number
 
|type=number
 
|desc=Server Framerate Std Deviation
 
|desc=Server Framerate Std Deviation
 +
}}
 +
{{Example
 +
|Description=Get the servers tickrate. Can be used to indicate lag
 +
|Code=print("Server Tick: "..(1/engine.ServerFrameTime()))
 +
|Output=Server Tick: 66.666668156783
 
}}
 
}}

Latest revision as of 12:00, 5 July 2018

 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