MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / value

Method value

extlibs/catch/include/catch/catch.hpp:15515–15528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15513 }
15514
15515 auto value() const -> double {
15516 switch (m_units) {
15517 case Unit::Microseconds:
15518 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMicrosecond);
15519 case Unit::Milliseconds:
15520 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMillisecond);
15521 case Unit::Seconds:
15522 return m_inNanoseconds / static_cast<double>(s_nanosecondsInASecond);
15523 case Unit::Minutes:
15524 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMinute);
15525 default:
15526 return static_cast<double>(m_inNanoseconds);
15527 }
15528 }
15529 auto unitsAsString() const -> std::string {
15530 switch (m_units) {
15531 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