System.Diagnostics.PerformanceCounterType.ElapsedTime Field

A difference timer that shows the total time between when the component or process started and the time when this value is calculated.

Syntax

PerformanceCounterType ElapsedTime

Remarks

Formula: (D - N ) / F, where D represents the current time, N represents the time the object was started, and F represents the number of time units that elapse in one second. The value of F is factored into the equation so that the result can be displayed in seconds.

Counters of this type include System\ System Up Time.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0