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

Function formatDuration

lib/catch2/catch.hpp:16847–16851  ·  view source on GitHub ↗

Formats the duration in seconds to 3 decimal places. This is done because some genius defined Maven Surefire schema in a way that only accepts 3 decimal places, and tools like Jenkins use that schema for validation JUnit reporter output.

Source from the content-addressed store, hash-verified

16845 // in a way that only accepts 3 decimal places, and tools like
16846 // Jenkins use that schema for validation JUnit reporter output.
16847 std::string formatDuration( double seconds ) {
16848 ReusableStringStream rss;
16849 rss << std::fixed << std::setprecision( 3 ) << seconds;
16850 return rss.str();
16851 }
16852
16853 } // anonymous namespace
16854

Callers 2

writeGroupMethod · 0.85
writeSectionMethod · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected