![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qbenchmark.h>
Public Types | |
enum | RunMode { RepeatUntilValidMeasurement , RunOnce } |
Public Member Functions | |
QBenchmarkIterationController () | |
QBenchmarkIterationController (RunMode runMode) | |
~QBenchmarkIterationController () | |
bool | isDone () const noexcept |
void | next () noexcept |
Public Attributes | |
int | i |
The QBenchmarkIterationController class is used by the QBENCHMARK macro to drive the benchmarking loop. It is responsible for starting and stopping the timing measurements as well as calling the result reporting functions.
Definition at line 24 of file qbenchmark.h.
Enumerator | |
---|---|
RepeatUntilValidMeasurement | |
RunOnce |
Definition at line 27 of file qbenchmark.h.
QTest::QBenchmarkIterationController::QBenchmarkIterationController | ( | ) |
Definition at line 154 of file qbenchmark.cpp.
QTest::QBenchmarkIterationController::QBenchmarkIterationController | ( | RunMode | runMode | ) |
Definition at line 146 of file qbenchmark.cpp.
QTest::QBenchmarkIterationController::~QBenchmarkIterationController | ( | ) |
Definition at line 162 of file qbenchmark.cpp.
|
noexcept |
Definition at line 169 of file qbenchmark.cpp.
|
noexcept |
Definition at line 178 of file qbenchmark.cpp.
int QTest::QBenchmarkIterationController::i |
Definition at line 33 of file qbenchmark.h.