docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Sync

    Sync(double, double)

    Synchronizes the time system with up-to-date network statistics but does not change any time values or advance the time.

    Declaration
    public void Sync(double serverTimeSec, double rttSec)
    Parameters
    Type Name Description
    double serverTimeSec

    The most recent server time value received in seconds.

    double rttSec

    The current RTT in seconds. Can be an averaged or a raw value.

    In This Article
    Back to top
    Copyright © 2024 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)