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.
| 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 |
no test coverage detected