docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport.Analytics
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct ConnectionStatistics.LatencyStatistics
    Remarks

    Currently these statistics are drawn entirely from reliable pipelines (pipelines with a ReliableSequencedPipelineStage) and their quality depends on the amount of traffic sent over those.

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)