| 47 | struct Speed |
| 48 | { |
| 49 | static auto BytesPerSec(size_t bytes, std::chrono::nanoseconds duration) |
| 50 | { |
| 51 | return duration.count() == 0 ? 0 : bytes / (static_cast<double>(duration.count()) / 1e9); |
| 52 | } |
| 53 | |
| 54 | template<typename Char> |
| 55 | static auto ToString(size_t bytes, std::chrono::nanoseconds duration) |
nothing calls this directly
no outgoing calls
no test coverage detected