pub(crate) fn poll_iters(delay_interval: Duration, max_wait: Duration) -> usize {
    let max_wait_millis = max_wait.as_millis() as u64;
    let delay_interval_millis = delay_interval.as_millis() as u64;
    assert!(delay_interval_millis > 0, "delay interval must be positive");

    max_wait_millis.div_ceil(delay_interval_millis).max(1) as usize
}
Returns the amount of iterations `delay_interval` fits into `max_wait`, rounding up.
core/node/state_keeper/src/io/common/mod.rs