1/// Get time window index. 2pub fn get_time_window_index(ts: i64, time_window: i64) -> i64 { 3 debug_assert!(time_window > 0); 4 ts / time_window 5}