| 6262 | getResultCapture().benchmarkStarting( { m_name } ); |
| 6263 | } |
| 6264 | auto BenchmarkLooper::needsMoreIterations() -> bool { |
| 6265 | auto elapsed = m_timer.getElapsedNanoseconds(); |
| 6266 | |
| 6267 | // Exponentially increasing iterations until we're confident in our timer resolution |
| 6268 | if( elapsed < m_resolution ) { |
| 6269 | m_iterationsToRun *= 10; |
| 6270 | return true; |
| 6271 | } |
| 6272 | |
| 6273 | getResultCapture().benchmarkEnded( { { m_name }, m_count, elapsed } ); |
| 6274 | return false; |
| 6275 | } |
| 6276 | |
| 6277 | } // end namespace Catch |
| 6278 | // end catch_benchmark.cpp |
nothing calls this directly
no test coverage detected