Interface IInstrumentation
Represents an instrumentation interface for measuring execution time and tracking elapsed time.
public interface IInstrumentation
Properties
ElapsedMilliseconds
Gets the total elapsed time in milliseconds since the instrumentation started.
long ElapsedMilliseconds { get; }
Property Value
ElapsedTicks
Gets the total elapsed ticks (processor-specific units) since the instrumentation started.
long ElapsedTicks { get; }
Property Value
ElapsedTime
Gets the total elapsed time as a TimeSpan since the instrumentation started.
TimeSpan ElapsedTime { get; }
Property Value
IsRunning
Gets a value indicating whether the instrumentation timer is currently running.
bool IsRunning { get; }
Property Value
StartTime
Gets the timestamp when the instrumentation started.
DateTime StartTime { get; }
Property Value
Methods
Restart()
Restarts the instrumentation timer, resetting the elapsed time to zero. Use this method to measure a new interval independently.
void Restart()