docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimingTestHelper

    Helper functions for timing related tests. Allows to get a set of time steps and simulate time advancing without the need of a full playmode test.

    Inheritance
    object
    TimingTestHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.EditorTests
    Assembly: Unity.Netcode.EditorTests.dll
    Syntax
    public static class TimingTestHelper

    Methods

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<float>, StepCheckDelegate)

    Declaration
    public static void ApplySteps(NetworkTimeSystem timeSystem, NetworkTickSystem tickSystem, List<float> steps, TimingTestHelper.StepCheckDelegate stepCheck = null)
    Parameters
    Type Name Description
    NetworkTimeSystem timeSystem
    NetworkTickSystem tickSystem
    List<float> steps
    TimingTestHelper.StepCheckDelegate stepCheck

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<float>, StepCheckResetDelegate)

    Declaration
    public static void ApplySteps(NetworkTimeSystem timeSystem, NetworkTickSystem tickSystem, List<float> steps, TimingTestHelper.StepCheckResetDelegate stepCheck = null)
    Parameters
    Type Name Description
    NetworkTimeSystem timeSystem
    NetworkTickSystem tickSystem
    List<float> steps
    TimingTestHelper.StepCheckResetDelegate stepCheck

    GetRandomTimeSteps(float, float, float, int)

    Declaration
    public static List<float> GetRandomTimeSteps(float totalDuration, float min, float max, int seed)
    Parameters
    Type Name Description
    float totalDuration
    float min
    float max
    int seed
    Returns
    Type Description
    List<float>
    In This Article
    Back to top
    Copyright © 2025 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)