#include <catch_benchmark.h>
Definition at line 2572 of file catch.hpp.
◆ BenchmarkLooper() [1/2]
Catch::BenchmarkLooper::BenchmarkLooper |
( |
StringRef | name | ) |
|
|
inline |
◆ BenchmarkLooper() [2/2]
Catch::BenchmarkLooper::BenchmarkLooper |
( |
StringRef | name | ) |
|
|
inline |
Definition at line 2583 of file catch.hpp.
2585 m_resolution( getResolution() )
2586 {
2589 }
◆ increment() [1/2]
void Catch::BenchmarkLooper::increment |
( |
| ) |
|
|
inline |
◆ increment() [2/2]
void Catch::BenchmarkLooper::increment |
( |
| ) |
|
|
inline |
Definition at line 2597 of file catch.hpp.
2597 {
2598 ++m_count;
2599 }
◆ needsMoreIterations() [1/2]
auto Catch::BenchmarkLooper::needsMoreIterations |
( |
| ) |
-> bool |
Definition at line 23 of file catch_benchmark.cpp.
23 {
25
26
27 if( elapsed < m_resolution ) {
28 m_iterationsToRun *= 10;
29 return true;
30 }
31
33 return false;
34 }
auto getElapsedNanoseconds() const -> uint64_t
IResultCapture & getResultCapture()
virtual void benchmarkEnded(BenchmarkStats const &stats)=0
◆ needsMoreIterations() [2/2]
auto Catch::BenchmarkLooper::needsMoreIterations |
( |
| ) |
-> bool |
◆ operator bool() [1/2]
Catch::BenchmarkLooper::operator bool |
( |
| ) |
|
|
inlineexplicit |
Definition at line 38 of file catch_benchmark.h.
38 {
39 if( m_count < m_iterationsToRun )
40 return true;
42 }
auto needsMoreIterations() -> bool
◆ operator bool() [2/2]
Catch::BenchmarkLooper::operator bool |
( |
| ) |
|
|
inlineexplicit |
Definition at line 2591 of file catch.hpp.
2591 {
2592 if( m_count < m_iterationsToRun )
2593 return true;
2595 }
◆ reportStart() [1/2]
void Catch::BenchmarkLooper::reportStart |
( |
| ) |
|
Definition at line 20 of file catch_benchmark.cpp.
20 {
22 }
virtual void benchmarkStarting(BenchmarkInfo const &info)=0
◆ reportStart() [2/2]
void Catch::BenchmarkLooper::reportStart |
( |
| ) |
|
The documentation for this class was generated from the following files: