Unosquare
    Show / Hide Table of Contents

    Class HighResolutionTimer

    Provides access to a high-resolution, time measuring device.

    Inheritance
    Object
    HighResolutionTimer
    Namespace: Swan.Diagnostics
    Syntax
    public class HighResolutionTimer : Stopwatch

    Constructors

    HighResolutionTimer()

    Initializes a new instance of the HighResolutionTimer class.

    Declaration
    public HighResolutionTimer()
    Exceptions
    Type Condition
    NotSupportedException

    High-resolution timer not available.

    Properties

    ElapsedMicroseconds

    Gets the elapsed microseconds.

    Declaration
    public long ElapsedMicroseconds { get; }
    Property Value
    Type Description
    Int64

    MicrosecondsPerTick

    Gets the number of microseconds per timer tick.

    Declaration
    public static double MicrosecondsPerTick { get; }
    Property Value
    Type Description
    Double

    Comments

    Back to top Copyright © 2017-2019 Unosquare