MCPcopy Create free account
hub / github.com/RenderKit/oidn / unitsAsString

Method unitsAsString

external/catch.hpp:16334–16350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16332 }
16333 }
16334 auto unitsAsString() const -> std::string {
16335 switch (m_units) {
16336 case Unit::Nanoseconds:
16337 return "ns";
16338 case Unit::Microseconds:
16339 return "us";
16340 case Unit::Milliseconds:
16341 return "ms";
16342 case Unit::Seconds:
16343 return "s";
16344 case Unit::Minutes:
16345 return "m";
16346 default:
16347 return "** internal error **";
16348 }
16349
16350 }
16351 friend auto operator << (std::ostream& os, Duration const& duration) -> std::ostream& {
16352 return os << duration.value() << ' ' << duration.unitsAsString();
16353 }

Callers 1

operator <<Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected