MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / needsMoreIterations

Method needsMoreIterations

Bcore/src/main/cpp/Dobby/tests/catch.hpp:4962–4973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4960 getResultCapture().benchmarkStarting({m_name});
4961}
4962auto 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

Callers

nothing calls this directly

Calls 2

getElapsedNanosecondsMethod · 0.80
benchmarkEndedMethod · 0.45

Tested by

no test coverage detected