docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.EditorTests
    Syntax
    public static class TimingTestHelper

    Methods

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<Single>, TimingTestHelper.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<Single> steps
    TimingTestHelper.StepCheckDelegate stepCheck

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<Single>, TimingTestHelper.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<Single> steps
    TimingTestHelper.StepCheckResetDelegate stepCheck

    GetRandomTimeSteps(Single, Single, Single, Int32)

    Declaration
    public static List<float> GetRandomTimeSteps(float totalDuration, float min, float max, int seed)
    Parameters
    Type Name Description
    Single totalDuration
    Single min
    Single max
    Int32 seed
    Returns
    Type Description
    List<Single>
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023