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

Method value

tests/catch.hpp:13299–13312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13297 }
13298
13299 auto value() const -> double {
13300 switch (m_units) {
13301 case Unit::Microseconds:
13302 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMicrosecond);
13303 case Unit::Milliseconds:
13304 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMillisecond);
13305 case Unit::Seconds:
13306 return m_inNanoseconds / static_cast<double>(s_nanosecondsInASecond);
13307 case Unit::Minutes:
13308 return m_inNanoseconds / static_cast<double>(s_nanosecondsInAMinute);
13309 default:
13310 return static_cast<double>(m_inNanoseconds);
13311 }
13312 }
13313 auto unitsAsString() const -> std::string {
13314 switch (m_units) {
13315 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