| 4960 | getResultCapture().benchmarkStarting({m_name}); |
| 4961 | } |
| 4962 | auto BenchmarkLooper::needsMoreIterations() -> bool { |
| 4963 | auto elapsed = m_timer.getElapsedNanoseconds(); |
| 4964 | |
| 4965 | // Exponentially increasing iterations until we're confident in our timer resolution |
| 4966 | if (elapsed < m_resolution) { |
| 4967 | m_iterationsToRun *= 10; |
| 4968 | return true; |
| 4969 | } |
| 4970 | |
| 4971 | getResultCapture().benchmarkEnded({{m_name}, m_count, elapsed}); |
| 4972 | return false; |
| 4973 | } |
| 4974 | |
| 4975 | } // end namespace Catch |
| 4976 | // end catch_benchmark.cpp |
nothing calls this directly
no test coverage detected