Method Stop
Stop()
Stops the automatic runner and clears the monotonic run anchor.
public bool Stop()
Returns
- bool
trueif the clock was running and stop completed (runner joined and ClockStopped was raised);falseif the clock was not running, or the runner did not join within the allowed time while stopping a running clock.
Remarks
After a successful stop, "now" getters return the persisted virtual instant only (no linear projection).
When false is returned because the runner thread did not exit within the join timeout, the clock is
logically stopped but the background runner may still be active. Subsequent Start(TimeSpan?)
calls throw InvalidOperationException until that thread exits or this clock instance is discarded.
This typically indicates the runner loop is blocked inside a ClockEvents subscriber or
virtual-time dispatch callback.