AgentRunClock constructor

AgentRunClock({
  1. Duration now()?,
})

Creates a stopped clock at zero.

now reads a monotonic time; it defaults to a running stopwatch. Tests pass a fake source.

Implementation

AgentRunClock({Duration Function()? now}) : _now = now ?? _monotonicNow;