RTTimer Constructor (Clock, RTTimerCallback) IntervalZero RTX Managed Code
Initializes a new instance of the IntervalZero.Threading.RTTimer class with an infinite period and an infinite due time, using the newly created RTTimerCallback.

Namespace:  RTX.Threading
Assembly:  IntervalZero.RTX (in IntervalZero.RTX.dll) Version: 12.0.0.0 (12.0.0.0)

Syntax

public RTTimer(
	Clock clock,
	RTTimerCallback callback
)

Parameters

clock
Type: RTX.Threading Clock
A clock identifier as defined below in the Remarks section.
callback
Type: RTX.Threading RTTimerCallback
A RTTimerCallback delegate representing a method to be executed.
Remarks

Allocates a new timer object and returns a handle to it. Legal clock values are:
  • System - One millisecond timer
  • RealTimeHAL - Real-time HAL timer. Default is 100 microseconds
  • Clock3 - General purpose clock 3
  • Clock4 - General purpose clock 4
  • Fastest - The fastest available clock and time on the system
See Also