MCPcopy Create free account
hub / github.com/apache/trafficserver / value

Method value

lib/catch2/catch.hpp:16331–16344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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