45 #include <QtTest/qtest_global.h> 46 #include <QtTest/qbenchmarkmetric.h> 68 enum RunMode { RepeatUntilValidMeasurement, RunOnce };
82 for (QTest::QBenchmarkIterationController __iteration_controller; \ 83 __iteration_controller.isDone() == false; __iteration_controller.next()) 85 #define QBENCHMARK_ONCE \ 86 for (QTest::QBenchmarkIterationController __iteration_controller(QTest::QBenchmarkIterationController::RunOnce); \ 87 __iteration_controller.isDone() == false; __iteration_controller.next()) 100 #endif // QBENCHMARK_H
#define QT_END_NAMESPACE
This macro expands to.
QBenchmarkMetric
This enum lists all the things that can be benchmarked.
The QBenchmarkIterationController class is used by the QBENCHMARK macro to drive the benchmarking loo...
#define QT_BEGIN_NAMESPACE
This macro expands to.
void Q_TESTLIB_EXPORT setBenchmarkResult(qreal result, QBenchmarkMetric metric)
Sets the benchmark result for this test function to result.
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...