Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AbsoluteStopwatch Class

    Namespace: Stride.Games.Time
    Assembly: Stride.Games.dll

    Represent an absolute time measurement stopwatch. (with as few internal overhead as possible) It measures elapsed time in seconds between calls to Start method and Elapsed property.

    System.Object → AbsoluteStopwatch
    Derived from AbsoluteStopwatch:

    public class AbsoluteStopwatch
    Name Description
    Properties
    Elapsed

    Gets the time elapsed since previous call to Start method, in seconds.

    Methods
    Start()

    Start the stopwatch. (use this method also to restart stopwatching)

    | Improve this Doc View Source

    Properties


    Elapsed

    Gets the time elapsed since previous call to Start method, in seconds.

    public double Elapsed { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Methods


    Start()

    Start the stopwatch. (use this method also to restart stopwatching)

    public void Start()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation