System.Diagnostics.Stopwatch.IsHighResolution Field

Indicates whether the timer is based on a high-resolution performance counter. This field is read-only.

Syntax

public static readonly bool IsHighResolution

Remarks

The timer used by the System.Diagnostics.Stopwatch class depends on the system hardware and operating system. Stopwatch.IsHighResolution is true if the System.Diagnostics.Stopwatch timer is based on a high-resolution performance counter. Otherwise, Stopwatch.IsHighResolution is false, which indicates that the System.Diagnostics.Stopwatch timer is based on the system timer.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0