Function gnunet_sys::GNUNET_TIME_absolute_get_difference[][src]

pub unsafe extern "C" fn GNUNET_TIME_absolute_get_difference(
    start: GNUNET_TIME_Absolute,
    end: GNUNET_TIME_Absolute
) -> GNUNET_TIME_Relative

Compute the time difference between the given start and end times. Use this function instead of actual subtraction to ensure that “FOREVER” and overflows are handled correctly.

@param start some absolute time @param end some absolute time (typically larger or equal to start) @return 0 if start >= end; FOREVER if end==FOREVER; otherwise end - start