DispatchSource.Timer.SetTimer(DispatchTime, Int64, Int64) Method

Definition

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.

Applies to