Search Results for

    Show / Hide Table of Contents

    Class Timers

    The management class for all diagnostic timers.

    Inheritance
    System.Object
    Timers
    Namespace: FM.LiveSwitch.Diagnostics
    Assembly: FM.LiveSwitch.dll
    Syntax
    public static class Timers : object

    Properties

    Enabled

    Gets whether the timings diagnostics are enabled or not.

    Declaration
    public static bool Enabled { get; }
    Property Value
    Type Description
    System.Boolean

    OutputInterval

    Gets or sets the output interval (in seconds) for diagnostic timings. Setting to 0 disables.

    Declaration
    public static int OutputInterval { get; set; }
    Property Value
    Type Description
    System.Int32

    OutputLogLevel

    Gets or sets the log level to use when outputting the timings.

    Declaration
    public static LogLevel OutputLogLevel { get; set; }
    Property Value
    Type Description
    LogLevel

    Methods

    GetDurationTimer(String)

    Gets a duration timer with a specific tag.

    Declaration
    public static DurationTimer GetDurationTimer(string tag)
    Parameters
    Type Name Description
    System.String tag

    The tag.

    Returns
    Type Description
    DurationTimer

    GetDurationTimer(Type)

    Gets a duration timer with a tag corresponding to a type name.

    Declaration
    public static DurationTimer GetDurationTimer(Type type)
    Parameters
    Type Name Description
    Type type

    The type.

    Returns
    Type Description
    DurationTimer

    GetRateTimer(String)

    Gets a rate timer with a specific tag.

    Declaration
    public static RateTimer GetRateTimer(string tag)
    Parameters
    Type Name Description
    System.String tag

    The tag.

    Returns
    Type Description
    RateTimer

    GetRateTimer(Type)

    Gets a rate timer with a tag corresponding to a type name.

    Declaration
    public static RateTimer GetRateTimer(Type type)
    Parameters
    Type Name Description
    Type type

    The type.

    Returns
    Type Description
    RateTimer
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0