MCPcopy Create free account
hub / github.com/Profactor/cv-plot / value

Method value

CvPlot/ext/catch2/inc/catch.hpp:15992–16005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15990 }
15991
15992 auto value() const -> double {
15993 switch (m_units) {
15994 case Unit::Microseconds:
15995 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMicrosecond);
15996 case Unit::Milliseconds:
15997 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMillisecond);
15998 case Unit::Seconds:
15999 return m_inNanoseconds / static_cast<double>(s_nanosecondsInASecond);
16000 case Unit::Minutes:
16001 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMinute);
16002 default:
16003 return static_cast<double>(m_inNanoseconds);
16004 }
16005 }
16006 auto unitsAsString() const -> std::string {
16007 switch (m_units) {
16008 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