Class Timing
Timing information for a metric
public class Timing : IMetricsTiming
- Inheritance
-
Timing
- Implements
- Inherited Members
Constructors
Timing()
Empty, stopped timing object
public Timing()
Timing(long)
Timing object in a started state
public Timing(long currentTime)
Parameters
currentTime
long
Properties
ElapsedTicks
Elapsed ticks from start to stop. If timing hasn't been stopped yet, returns 0.
public long ElapsedTicks { get; }
Property Value
ElapsedTime
Elapsed time from start to stop. If timing hasn't been stopped yet, returns TimeSpan.Zero
public TimeSpan ElapsedTime { get; }
Property Value
IsFinished
Whether the timing has been stopped
public bool IsFinished { get; }
Property Value
Methods
Stop(long)
Stops timing
public void Stop(long currentTime)
Parameters
currentTime
long