docs.unity.cn
    Show / Hide Table of Contents

    Class StopwatchExtensions

    Extension methods for System.Diagnostics.Stopwatch objects.

    Inheritance
    Object
    StopwatchExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class StopwatchExtensions

    Methods

    Restart(Stopwatch)

    Restarts the stopwatch by stopping, resetting, and then starting it.

    Declaration
    public static void Restart(this Stopwatch stopwatch)
    Parameters
    Type Name Description
    Stopwatch stopwatch

    The stopwatch to restart.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Tuesday, July 18, 2023