Struct ConnectionStatistics.LatencyStatistics
Statistics about the latency experienced on a connection. All statistics are measured in milliseconds and reflect the round-trip time (RTT, commonly called "ping") on the link.
Inherited Members
Namespace: Unity.Networking.Transport.Analytics
Assembly: Unity.Networking.Transport.dll
Syntax
public struct ConnectionStatistics.LatencyStatistics
Remarks
Latency and packet duplication statistics are drawn entirely from reliable pipelines (pipelines with a ReliableSequencedPipelineStage) and their quality depends on the amount of traffic sent over those. Packet loss and out of order rates are drawn from both reliable and unreliable sequenced pipelines.
Fields
Current
Latest latency measurement taken on the connection.
Declaration
public uint Current
Field Value
| Type | Description |
|---|---|
| uint | RTT in milliseconds. |
Maximum
Maximum latency seen over the lifetime of the connection.
Declaration
public uint Maximum
Field Value
| Type | Description |
|---|---|
| uint | RTT in milliseconds. |
Mean
Average latency over the lifetime of the connection.
Declaration
public float Mean
Field Value
| Type | Description |
|---|---|
| float | RTT in milliseconds. |
Minimum
Minimum latency seen over the lifetime of the connection.
Declaration
public uint Minimum
Field Value
| Type | Description |
|---|---|
| uint | RTT in milliseconds. |
SmoothedCurrent
Weighted average of the last few latency measurements.
Declaration
public float SmoothedCurrent
Field Value
| Type | Description |
|---|---|
| float | RTT in milliseconds. |
StandardDeviation
Standard deviation around the mean latency.
Declaration
public float StandardDeviation
Field Value
| Type | Description |
|---|---|
| float | Latency deviation in milliseconds. |