Calculate time required to transmit buffer at a specific rate
- bufsize Size of buffer to be transmited in bytes.
- rate Transmit rate in bytes per second.
Calculates the number of micro seconds required to transmit a specific buffer at a specific transmit rate.
- Required transmit time in micro seconds.
Definition at line 375 of file tc.c.
Referenced by rtnl_qdisc_tbf_set_peakrate(), rtnl_qdisc_tbf_set_rate(), and rtnl_tc_build_rate_table().
tx_time_secs = (double) bufsize / (double) rate;
return tx_time_secs * 1000000.;