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
    • 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