Search Results for

    Show / Hide Table of Contents

    Class NetworkTime

    Synchronizes server time to clients.

    Inheritance
    Object
    NetworkTime
    Namespace: Mirror
    Assembly: doc.dll
    Syntax
    public static class NetworkTime : object

    Fields

    | Improve this Doc View Source

    PingFrequency

    Ping message frequency, used to calculate network time and RTT

    Declaration
    public static float PingFrequency
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    PingWindowSize

    Average out the last few results from Ping

    Declaration
    public static int PingWindowSize
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    localTime

    Declaration
    public static double localTime { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    rttVariance

    Round trip time variance. The higher, the less accurate the rtt is.

    Declaration
    public static double rttVariance { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    time

    The time in seconds since the server started.

    Declaration
    public static double time { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    timeStandardDeviation

    Time standard deviation. The highe, the less accurate the time is.

    Declaration
    public static double timeStandardDeviation { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    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 Source

    ResetStatics()

    Declaration
    public static void ResetStatics()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX