Class DurationTimer
A duration timer for calculating how long a process takes.
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 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
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 |