MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / ToString

Method ToString

FastCopy/ReadableUnitConverter.h:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected