Function gnunet_sys::GNUNET_BANDWIDTH_value_get_delay_for[][src]

pub unsafe extern "C" fn GNUNET_BANDWIDTH_value_get_delay_for(
    bps: GNUNET_BANDWIDTH_Value32NBO,
    size: u64
) -> GNUNET_TIME_Relative

At the given bandwidth, calculate how long it would take for ‘size’ bytes to be transmitted.

@param bps bandwidth @param size number of bytes we want to have available @return how long it would take