Skip to main content

byte_rate

Function byte_rate 

Source
pub fn byte_rate(size: ByteSize, over: Time) -> ByteRate
Expand description

A byte rate given as a byte count over a time extent, without an intermediate division at the call site.

byte_rate(mebibytes(8), secs(2)) reads as ā€œ8 MiB every 2 sā€.