docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StopwatchExtensions

    Extension methods for System.Diagnostics.Stopwatch objects.

    Inheritance
    object
    StopwatchExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils
    Assembly: Unity.XR.CoreUtils.dll
    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.

    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)