Class DurationSample
A sample for the duration timer.
Inheritance
System.Object
DurationSample
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 DurationSample
Constructors
DurationSample(Int64)
Creates a new instance of the DurationSample class.
Declaration
public DurationSample(long beginMillis)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | beginMillis | The stopwatch value in milliseconds when the sample started. |
Properties
BeginMillis
Gets the stopwatch value in milliseconds when the sample started.
Declaration
public long BeginMillis { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
EndMillis
Gets the stopwatch value in milliseconds when the sample stopped.
Declaration
public long EndMillis { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
End(Int64)
Ends the sample.
Declaration
public void End(long endMillis)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | endMillis | The stopwatch value in milliseconds when the sample stopped. |