HiResTimerInterval Property

Gets or sets the interval, in milliseconds, before Elapsed event is triggered. Fractional values are allowed, too. When zero, the Elapsed event is triggered as often as possible.
Default value: 1.0, if initialized by the default constructor; otherwise, as specified in the constructor.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public float Interval { get; set; }

Property Value

Single
The interval in milliseconds. For example, 1000 represents one second and 0.001 represents one microsecond.

Remarks

  Note

Please note that if Interval is smaller than 16, then the timer may consume much CPU when running.

Exceptions

ArgumentOutOfRangeExceptionvalue is negative or NaN.

See Also