fn seconds_to_count(seconds: f64, rate: f64) -> u64
Convert seconds × rate to a u64 count, rounding to nearest. Both inputs are finite + non-negative in normal use; clamps to 0 on anything else.
seconds × rate
u64