Table of Contents

Property TimeUntilNextCallback

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

TimeUntilNextCallback

Returns the time remaining until the next callback for this registration.

long TimeUntilNextCallback { get; }

Property Value

long

Remarks

Value is in milliseconds. For a non-repeating timer registration that has already signaled at least once, this will return -1.

For a repeating interval timer where IsResetBeforeCallback is false, the next due instant is not scheduled until the callback completes; while a callback is running, this property therefore returns -1. When IsResetBeforeCallback is true, the next tick is scheduled when the current tick fires, so a value may be available while a callback is still executing.

Implementations in KZDev.SystemClock.PrimeTime may expose this as TimeSpan; KZDev.PrimeTime (NodaTime) as Duration. This common contract uses milliseconds. A value of -1 indicates no next callback or not applicable.