Class NetworkTime
Synchronizes server time to clients.
Namespace: Mirror
Assembly: doc.dll
Syntax
public static class NetworkTime : object
Fields
| Improve this Doc View SourcePingFrequency
Ping message frequency, used to calculate network time and RTT
Declaration
public static float PingFrequency
Field Value
Type | Description |
---|---|
Single |
PingWindowSize
Average out the last few results from Ping
Declaration
public static int PingWindowSize
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourcelocalTime
Declaration
public static double localTime { get; }
Property Value
Type | Description |
---|---|
Double |
offset
Clock difference in seconds between the client and the server. Always 0 on server.
Declaration
public static double offset { get; }
Property Value
Type | Description |
---|---|
Double |
rtt
Round trip time (in seconds) that it takes a message to go client->server->client.
Declaration
public static double rtt { get; }
Property Value
Type | Description |
---|---|
Double |
rttStandardDeviation
Round trip time standard deviation. The higher, the less accurate the rtt is.
Declaration
public static double rttStandardDeviation { get; }
Property Value
Type | Description |
---|---|
Double |
rttVariance
Round trip time variance. The higher, the less accurate the rtt is.
Declaration
public static double rttVariance { get; }
Property Value
Type | Description |
---|---|
Double |
time
The time in seconds since the server started.
Declaration
public static double time { get; }
Property Value
Type | Description |
---|---|
Double |
timeStandardDeviation
Time standard deviation. The highe, the less accurate the time is.
Declaration
public static double timeStandardDeviation { get; }
Property Value
Type | Description |
---|---|
Double |
timeVariance
Time measurement variance. The higher, the less accurate the time is.
Declaration
public static double timeVariance { get; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceResetStatics()
Declaration
public static void ResetStatics()