Skip to main content

rate_per_sec

Function rate_per_sec 

Source
fn rate_per_sec(total: f64, elapsed: Duration) -> f64
Expand description

Converts a cumulative campaign total into an average per-second rate.

Returns 0.0 during the initial zero-elapsed startup window to avoid dividing by zero while progress reporting is warming up.