docs.unity3d.com
    Show / Hide Table of Contents

    Class MockTimeProvider

    Inheritance
    Object
    MockTimeProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Syntax
    public class MockTimeProvider : IRealTimeProvider

    Properties

    DeltaTime

    Declaration
    public float DeltaTime { get; }
    Property Value
    Type Description
    Single

    RealTimeSinceStartup

    Declaration
    public float RealTimeSinceStartup { get; }
    Property Value
    Type Description
    Single

    StaticDeltaTime

    Declaration
    public static float StaticDeltaTime { get; }
    Property Value
    Type Description
    Single

    StaticRealTimeSinceStartup

    Declaration
    public static float StaticRealTimeSinceStartup { get; }
    Property Value
    Type Description
    Single

    StaticUnscaledDeltaTime

    Declaration
    public static float StaticUnscaledDeltaTime { get; }
    Property Value
    Type Description
    Single

    StaticUnscaledTime

    Declaration
    public static float StaticUnscaledTime { get; }
    Property Value
    Type Description
    Single

    UnscaledDeltaTime

    Declaration
    public float UnscaledDeltaTime { get; }
    Property Value
    Type Description
    Single

    UnscaledTime

    Declaration
    public float UnscaledTime { get; }
    Property Value
    Type Description
    Single

    Methods

    Reset()

    Declaration
    public static void Reset()

    TimeTravel(Double)

    Declaration
    public static void TimeTravel(double amountOfTimeTraveled)
    Parameters
    Type Name Description
    Double amountOfTimeTraveled
    In This Article
    • Properties
      • DeltaTime
      • RealTimeSinceStartup
      • StaticDeltaTime
      • StaticRealTimeSinceStartup
      • StaticUnscaledDeltaTime
      • StaticUnscaledTime
      • UnscaledDeltaTime
      • UnscaledTime
    • Methods
      • Reset()
      • TimeTravel(Double)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023