UAOOI.ProcessObserver.RealTime.Processes Namespace
UAOOI.ProcessObserver.RealTime.Utils.Collections.Generic Namespace
UAOOI.ProcessObserver.RealTime

Stopwatch..::..SWFrequency Property

Gets the frequency of the timer as the number of ticks per second. This field is read-only.

Namespace:  UAOOI.ProcessObserver.RealTime.Processes
Assembly:  RealTime (in RealTime.dll)

Syntax


public static uint SWFrequency { get; }
Public Shared ReadOnly Property SWFrequency As UInteger
	Get
public:
static property unsigned int^ SWFrequency {
	unsigned int^ get ();
}

Field Value

The SW frequency.

Remarks


The timer frequency indicates the timer precision and resolution. For example, a timer frequency of 2 million ticks per second equals a timer resolution of 500 nanoseconds per tick. In other words, because one second equals 1 billion nanoseconds, a timer frequency of 2 million ticks per second is equivalent to 2 million ticks per 1 billion nanoseconds, which can be further simplified to 1 tick per 500 nanoseconds. The Frequency value depends on the resolution of the underlying timing mechanism. If the installed hardware and operating system support a high-resolution performance counter, then the Frequency value reflects the frequency of that counter. Otherwise, the Frequency value is based on the system timer frequency. Because the Stopwatch frequency depends on the installed hardware and operating system, the Frequency value remains constant while the system is running.