You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use a monotonic clock for auto-stop, runaway guard, and runtime #52
The engine measures auto-stop, the runaway-CPS window, and runtime with time.time() (the wall clock). An NTP sync, a manual clock change, or a DST/timezone change during a session can:
trigger auto-stop early (clock jumps forward) or never (clock jumps back),
distort the 1-second runaway window (false trips or a blind spot),
Use time.monotonic() for all durations and intervals. Keep time.time() only where a wall-clock timestamp is displayed or logged. Update tests that patch time.time.
Done when
No elapsed-time logic depends on time.time(), and a test that patches monotonic verifies auto-stop is unaffected by a wall-clock jump.
Activity