calculate_lag_ms

Function calculate_lag_ms 

Source
pub fn calculate_lag_ms(cursor: &str, latest: &str) -> Option<u64>
Expand description

Calculate the time lag in milliseconds between two stream IDs.

Returns None if either ID can’t be parsed. Returns 0 if cursor is ahead of latest (shouldn’t happen normally).