MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / value

Method value

extern/Catch2/catch.hpp:16333–16346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

arguments_stringMethod · 0.45
parse_defaultMethod · 0.45
checked_parse_argMethod · 0.45
consume_positionalMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
operator <<Method · 0.45
computeEnergyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected