Estimates the data transfer rate in bytes per second over elapsed wall time.
Public Member Functions | |
| constexpr | RateEstimate () |
Constructs an unstarted RateEstimate. | |
| void | Reset () |
| Resets the start time to the current time and clears the byte counter. | |
| constexpr void | Update (size_t new_bytes) |
| size_t | GetRateBytesPerSecond () const |
| size_t pw::transfer::RateEstimate::GetRateBytesPerSecond | ( | ) | const |
|
inlineconstexpr |
Records additional transferred bytes.
| [in] | new_bytes | Number of newly transferred bytes to add. |