Table of Contents

Interface IInstrumentation

Namespace
Xping.Sdk.Core.Common
Assembly
Xping.Sdk.Core.dll

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

long

ElapsedTicks

Gets the total elapsed ticks (processor-specific units) since the instrumentation started.

long ElapsedTicks { get; }

Property Value

long

ElapsedTime

Gets the total elapsed time as a TimeSpan since the instrumentation started.

TimeSpan ElapsedTime { get; }

Property Value

TimeSpan

IsRunning

Gets a value indicating whether the instrumentation timer is currently running.

bool IsRunning { get; }

Property Value

bool

StartTime

Gets the timestamp when the instrumentation started.

DateTime StartTime { get; }

Property Value

DateTime

Methods

Restart()

Restarts the instrumentation timer, resetting the elapsed time to zero. Use this method to measure a new interval independently.

void Restart()