pub const WINDOW_MS: u64 = 30_000;
Samples older than this are dropped, so a rate reflects the recent past rather than the average since the job started.