Class Timing
Used to capture timings for a specific metric. I.E.
- Round trip time
- Request completion time
Namespace:Phobos.Monitoring.Metrics
Assembly:Phobos.Monitoring.dll
Syntax
public sealed class Timing : Metric, IMetric
Methods
Record(Int64)
Record the elapsed time of an operation.
Declaration
public void Record(long timeMs)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | timeMs | The total amount of time in milliseconds the operation took. |
Record(TimeSpan)
Record the elapsed time of an operation.
Declaration
public void Record(TimeSpan timeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| System.TimeSpan | timeSpan | The total amount of time the operation took. |