Skip to main content

window_slot

Function window_slot 

Source
fn window_slot(now_ms: u64, window_ms: u64) -> (u64, u64)
Expand description

Wall-clock window slot: the window index (key component shared by all instances) and the milliseconds from now_ms to the window’s end (the PEXPIRE argument). Pure, so the boundary math is unit-testable.