| 53 | |
| 54 | template<typename Char> |
| 55 | static auto ToString(size_t bytes, std::chrono::nanoseconds duration) |
| 56 | { |
| 57 | if (duration.count() == 0) |
| 58 | { |
| 59 | if constexpr (std::is_same_v<Char, char>) |
| 60 | { |
| 61 | return decltype(Size::ToString<char>(1)){"---"}; |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | return decltype(Size::ToString<wchar_t>(1)) {L"---"}; |
| 66 | } |
| 67 | } |
| 68 | return Size::ToString<Char>(BytesPerSec(bytes, duration)) + L"/s"; |
| 69 | } |
| 70 | |
| 71 | template<typename Char> |
| 72 | static auto ToString(double bytesPerSec) |
nothing calls this directly
no outgoing calls
no test coverage detected