Table of Contents

Method Change

Namespace
KZDev.SystemClock.PrimeTime
Assembly
KZDev.SystemClock.PrimeTime.dll

Change(TimeSpan)

Changes the interval of this registration.

bool Change(TimeSpan interval)

Parameters

interval TimeSpan

The time to delay before the next callback. For a repeating timer, this also becomes the repeat interval.

Returns

bool

true if the change was applied; false if the registration was cancelled, disposed, or otherwise invalid.

Remarks

Does not change whether the timer is repeating or one-shot. For a repeating timer, interval is used for both the next and subsequent intervals. To set the next due time and repeat interval independently, use Change(TimeSpan, TimeSpan).