//! Warmup-aware sampling primitives shared by every protocol client.
use ;
/// Effective measurement duration in microseconds: total elapsed minus the
/// warmup window, clamped so we never report a zero or negative duration that
/// would blow up throughput calculations.
///
/// NOTE: the 1ms floor masks the `warmup >= elapsed` case; CLI-level
/// validation (and a principled minimum window) is layered on top so this
/// clamp is only ever a last-resort guard.
/// Offset of `now` from the test start in microseconds — the sample's
/// position on the test's monotonic time axis (where 0 is the test start).