RtTimer Constructor (Clock, RtTimerCallback)
Initializes a new instance of the IntervalZero.Threading.RtTimer class with an infinite period and an infinite due time, using the newly created RtTimerCallback.
IMPORTANT: This constructor has been deprecated. It will be removed in a future release.
Namespace:
IntervalZero.MaxRT.wRTOS.RtApi.Threading
Assembly:
IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public RtTimer(
Clock clock,
RtTimerCallback callback
)
Parameters
clock
Type: IntervalZero.MaxRT.wRTOS.RtApi.Threading.Clock
A clock identifier as defined below in the Remarks section.
callback
Type: IntervalZero.MaxRT.wRTOS.RtApi.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
- Fastest - The fastest available clock and time on the system
See Also: