docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Timer

    Timer class for abstracting elapsed time from various sources.

    Inheritance
    object
    Timer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    [Serializable]
    public class Timer

    Constructors

    Timer()

    Initializes a new Timer instance.

    Declaration
    public Timer()

    Fields

    timerSource

    The selecter timer source. Defaults to Time.timeSinceLevelLoad.

    Declaration
    public TimerSource timerSource
    Field Value
    Type Description
    TimerSource

    Properties

    elapsedSeconds

    Returns the elapsed time from the specified timer source.

    Declaration
    public double elapsedSeconds { get; }
    Property Value
    Type Description
    double
    In This Article
    Back to top
    Copyright © 2026 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)