Space Engineers
Public Member Functions | Properties | List of all members
Sandbox.Game.Multiplayer.MyNetworkTimer Class Reference

Returns continuous server time including network lag For server it's real time, and speed won't ever change More...

Public Member Functions

void GetDeltas (List< TimeSpan > toList)
 
void InterpolateCorrection ()
 
void AddSample (TimeSpan receiveTime, TimeSpan serverTime)
 
void Tick ()
 

Properties

double AverageDeltaMilliseconds [get]
 
TimeSpan CurrentTime [get]
 
int LastFrameTime [get]
 

Detailed Description

Returns continuous server time including network lag For server it's real time, and speed won't ever change

Definition at line 14 of file MyNetworkTimer.cs.

Member Function Documentation

void Sandbox.Game.Multiplayer.MyNetworkTimer.AddSample ( TimeSpan  receiveTime,
TimeSpan  serverTime 
)
inline

Definition at line 79 of file MyNetworkTimer.cs.

void Sandbox.Game.Multiplayer.MyNetworkTimer.GetDeltas ( List< TimeSpan >  toList)
inline

Definition at line 32 of file MyNetworkTimer.cs.

void Sandbox.Game.Multiplayer.MyNetworkTimer.InterpolateCorrection ( )
inline

Definition at line 66 of file MyNetworkTimer.cs.

void Sandbox.Game.Multiplayer.MyNetworkTimer.Tick ( )
inline

Definition at line 108 of file MyNetworkTimer.cs.

Property Documentation

double Sandbox.Game.Multiplayer.MyNetworkTimer.AverageDeltaMilliseconds
get

Definition at line 40 of file MyNetworkTimer.cs.

TimeSpan Sandbox.Game.Multiplayer.MyNetworkTimer.CurrentTime
get

Definition at line 51 of file MyNetworkTimer.cs.

int Sandbox.Game.Multiplayer.MyNetworkTimer.LastFrameTime
get

Definition at line 59 of file MyNetworkTimer.cs.


The documentation for this class was generated from the following file: