fn scale(window: Duration, jitter_unit: f64) -> Duration
Multiply a duration by a unit fraction, clamping the fraction to [0.0, 1.0].
[0.0, 1.0]