providerWindowLabel function
Renders a watchdog window for stall notes: whole seconds at or above
1s, milliseconds below — a scoped 400ms window must never read as
idle window 0s (issue #1554 review round 2).
Implementation
String providerWindowLabel(Duration window) => window.inMilliseconds < 1000
? '${window.inMilliseconds}ms'
: '${window.inSeconds}s';