Class Timers
The management class for all diagnostic timers.
Inheritance
System.Object
Timers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Diagnostics
Assembly: FM.LiveSwitch.dll
Syntax
public static class Timers
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 |
---|---|---|
System.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 |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
RateTimer |