MCPcopy Create free account
hub / github.com/apache/qpid-proton / value

Method value

tests/include/catch.hpp:16335–16348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16333 }
16334
16335 auto value() const -> double {
16336 switch (m_units) {
16337 case Unit::Microseconds:
16338 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMicrosecond);
16339 case Unit::Milliseconds:
16340 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMillisecond);
16341 case Unit::Seconds:
16342 return m_inNanoseconds / static_cast<double>(s_nanosecondsInASecond);
16343 case Unit::Minutes:
16344 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMinute);
16345 default:
16346 return m_inNanoseconds;
16347 }
16348 }
16349 auto unitsAsString() const -> std::string {
16350 switch (m_units) {
16351 case Unit::Nanoseconds:

Callers 3

parseMethod · 0.45
parseMethod · 0.45
operator <<Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected