pub fn interarrival_difference(i: Arrival, j: Arrival) -> i64Expand description
D(i,j) of RFC 7160 section 4.3, in units of packet i’s clock:
D(i,j) = (arrival_time_j * clock_rate_i - timestamp_j)
- (arrival_time_i * clock_rate_i - timestamp_i)The clock rate of packet i (the earlier one) is used for both arrival times, which is
what keeps the difference zero across a clock rate change on a path without jitter.