Class PerfInterval
Represents a performance timing interval.
public class PerfInterval : IPerfInterval
- Inheritance
-
PerfInterval
- Implements
- Inherited Members
Properties
ElapsedMs
Number of milliseconds elapsed since the interval was started.
public int ElapsedMs { get; }
Property Value
EventStart
The start timestamp of the interval.
public DateTimeOffset EventStart { get; }
Property Value
RelatedActivity
The Activity related to this interval.
public Activity RelatedActivity { get; }
Property Value
Methods
Restart()
Restarts the interval timer and rebinds the current activity.
public void Restart()
Resume()
Resumes the interval timer, but does not rebind the current activity.
public void Resume()
Start()
Creates and starts a new interval.
public static PerfInterval Start()
Returns
- PerfInterval
The interval.
Stop()
Stops the interval timer.
public void Stop()