Search Results for

    Show / Hide Table of Contents

    Class DurationTimer

    A duration timer for calculating how long a process takes.

    Inheritance
    System.Object
    Timer
    DurationTimer
    Inherited Members
    Timer.Watch
    Timer.Tag
    Timer.Destroy()
    Namespace: FM.LiveSwitch.Diagnostics
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class DurationTimer : Timer

    Properties

    HasData

    Gets whether this timer has data or not.

    Declaration
    public override bool HasData { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    Timer.HasData

    Methods

    BeginSample()

    Adds beginning timestamp to the sample queue.

    Declaration
    public DurationSample BeginSample()
    Returns
    Type Description
    DurationSample

    EndSample(DurationSample)

    Adds an end timestamp to the sample queue.

    Declaration
    public bool EndSample(DurationSample sample)
    Parameters
    Type Name Description
    DurationSample sample
    Returns
    Type Description
    System.Boolean

    GetStats()

    Processes samples and calculates instant while keeping track of the total the min, max, and average.

    Declaration
    public override string GetStats()
    Returns
    Type Description
    System.String
    Overrides
    Timer.GetStats()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0