Function gnunet_sys::GNUNET_TIME_calculate_eta[][src]

pub unsafe extern "C" fn GNUNET_TIME_calculate_eta(
    start: GNUNET_TIME_Absolute,
    finished: u64,
    total: u64
) -> GNUNET_TIME_Relative

Calculate the estimate time of arrival/completion for an operation.

@param start when did the operation start? @param finished how much has been done? @param total how much must be done overall (same unit as for “finished”) @return remaining duration for the operation, assuming it continues at the same speed