DispatchSource.Timer.SetTimer(DispatchTime, Int64, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the paramters to the timer.
public void SetTimer (CoreFoundation.DispatchTime time, long nanosecondInterval, long nanosecondLeeway);
member this.SetTimer : CoreFoundation.DispatchTime * int64 * int64 -> unit
Parameters
- time
- DispatchTime
Initial time for the timer to be fired. If the value is zero, then the timer is based on mach_absolute_time.
- nanosecondInterval
- Int64
Interval in nanosecond at which the timer will be fired after the initial time.
- nanosecondLeeway
- Int64
Upper limit of the allowed delay (as the system might put the system to sleep).
Remarks
Once this method returns, any pending source data accumulated for the previous timer parameters has been cleared; the next fire of the timer will occur at time
, and every interval nanosecondInterval
thereafter until the timer source is canceled.