Skip to main content

observe

Function observe 

Source
pub fn observe(
    account: &str,
    windows: &[(String, f64, u64)],
    now_ms: u64,
) -> Vec<Crossing>
Expand description

Keep windows (from windows_of_frame) as account’s latest at now_ms, and say which thresholds they newly cross. A reading for a window that resets earlier than the one kept is a frame from the window before: ignored. A later reset is a new window, and tells again.