docs.unity3d.com
    Show / Hide Table of Contents

    Class Timer

    Timer class for abstracting elapsed time from various sources.

    Inheritance
    Object
    Timer
    Namespace: Unity.Simulation
    Syntax
    [Serializable]
    public class Timer

    Constructors

    Timer()

    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
    Back to top
    Terms of use
    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