![]() |
Qt 6.x
The Qt SDK
|
#include <qbenchmark.h>
Public Types | |
enum | RunMode { RepeatUntilValidMeasurement , RunOnce } |
Public Member Functions | |
QBenchmarkIterationController () | |
QBenchmarkIterationController (RunMode runMode) | |
~QBenchmarkIterationController () | |
bool | isDone () |
void | next () |
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 155 of file qbenchmark.cpp.
References QTest::beginBenchmarkMeasurement(), and i.
QTest::QBenchmarkIterationController::QBenchmarkIterationController | ( | RunMode | runMode | ) |
Definition at line 147 of file qbenchmark.cpp.
References QTest::beginBenchmarkMeasurement(), QBenchmarkTestMethodData::current, i, RunOnce, and QBenchmarkTestMethodData::runOnce.
QTest::QBenchmarkIterationController::~QBenchmarkIterationController | ( | ) |
Definition at line 163 of file qbenchmark.cpp.
References QBenchmarkTestMethodData::current, QTest::endBenchmarkMeasurement(), and QBenchmarkTestMethodData::setResults().
bool QTest::QBenchmarkIterationController::isDone | ( | ) |
Definition at line 170 of file qbenchmark.cpp.
References QBenchmarkTestMethodData::current, i, and QTest::iterationCount().
void QTest::QBenchmarkIterationController::next | ( | ) |
Definition at line 179 of file qbenchmark.cpp.
References i.
int QTest::QBenchmarkIterationController::i |
Definition at line 33 of file qbenchmark.h.
Referenced by QBenchmarkIterationController().