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

Method BytesPerSec

FastCopy/ReadableUnitConverter.h:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected