pub(crate) fn sample_cap(max_capture: Duration) -> usize
The cap in samples. Integer maths so it cannot be a truncating float cast.