PerformanceTimer Class

The PerformanceTimer class allows an application to schedule periodic time events.

Definition

Namespace: Peak.Classes.Time
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.0.1
C#
public class PerformanceTimer
Inheritance
Object    PerformanceTimer

Constructors

PerformanceTimer Initializes a new instance of the PerformanceTimer class.

Properties

Accuracy Retrieves the accuracy of the timer, in milliseconds.
Enabled Get or set whether the PerformanceTimer is running.
Interval Get or set the time interval, in milliseconds, for the time events.
SupportsHighResolution Indicates if the timer uses a high resolution performance counter.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Elapsed Occurs each time the number of milliseconds specified by Interval expires.

See Also