Table of Contents

Method Advance

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

Advance(TimeSpan)

Advances virtual time forward by marching to each earliest due instant up to the new horizon, then dispatching delays, time expiries, and timers at each step.

void Advance(TimeSpan duration)

Parameters

duration TimeSpan

The amount of virtual time to add to the current time.

Remarks

Negative duration is treated as zero (no backward move). Each callback runs while UtcNowDateTimeOffset equals that event's firing instant. ClockEvents is raised once per distinct virtual instant visited during the march (including a raise when duration is zero).