MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / BenchmarkLooper

Method BenchmarkLooper

unittests/catch.hpp:1906–1912  ·  view source on GitHub ↗

Keep most of this inline as it's on the code path that is being timed

Source from the content-addressed store, hash-verified

1904 public:
1905 // Keep most of this inline as it's on the code path that is being timed
1906 BenchmarkLooper( StringRef name )
1907 : m_name( name ),
1908 m_resolution( getResolution() )
1909 {
1910 reportStart();
1911 m_timer.start();
1912 }
1913
1914 explicit operator bool() {
1915 if( m_count < m_iterationsToRun )

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected