MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / value

Method value

Bcore/src/main/cpp/Dobby/tests/catch.hpp:11684–11697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11682 }
11683
11684 auto value() const -> double {
11685 switch (m_units) {
11686 case Unit::Microseconds:
11687 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMicrosecond);
11688 case Unit::Milliseconds:
11689 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMillisecond);
11690 case Unit::Seconds:
11691 return m_inNanoseconds / static_cast<double>(s_nanosecondsInASecond);
11692 case Unit::Minutes:
11693 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMinute);
11694 default:
11695 return static_cast<double>(m_inNanoseconds);
11696 }
11697 }
11698 auto unitsAsString() const -> std::string {
11699 switch (m_units) {
11700 case Unit::Nanoseconds:

Callers 5

parseMethod · 0.45
parseMethod · 0.45
operator<<Method · 0.45
injectHookMethod · 0.45
initAnnotationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected