Table of Contents

Property ElapsedTime

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ElapsedTime

Returns the time elapsed since the last callback for this registration.

long ElapsedTime { get; }

Property Value

long

Remarks

Value is in milliseconds. If no callbacks have been made yet, this will return -1.

If the current State is ProcessingCallback, this will return 0 regardless of the number of callbacks that are currently being processed and not yet completed.

Implementations in KZDev.SystemClock.PrimeTime may expose this as TimeSpan; KZDev.PrimeTime (NodaTime) as Duration. This common contract uses milliseconds to remain time-type agnostic.