MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / needsMoreIterations

Method needsMoreIterations

tests/catch.hpp:6264–6275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getElapsedNanosecondsMethod · 0.80
benchmarkEndedMethod · 0.45

Tested by

no test coverage detected