Qt 4.8
|
#include <QtTest/qtest_global.h>
#include <QtTest/qbenchmarkmetric.h>
Go to the source code of this file.
Classes | |
class | QTest::QBenchmarkIterationController |
The QBenchmarkIterationController class is used by the QBENCHMARK macro to drive the benchmarking loop. More... | |
Namespaces | |
QTest | |
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool. | |
Macros | |
#define | QBENCHMARK |
This macro is used to measure the performance of code within a test. More... | |
#define | QBENCHMARK_ONCE |
The QBENCHMARK_ONCE macro is for measuring performance of a code block by running it once. More... | |
Functions | |
void Q_TESTLIB_EXPORT | QTest::setBenchmarkResult (qreal result, QBenchmarkMetric metric) |
Sets the benchmark result for this test function to result. More... | |
#define QBENCHMARK |
This macro is used to measure the performance of code within a test.
The code to be benchmarked is contained within a code block following this macro.
For example:
#define QBENCHMARK_ONCE |
The QBENCHMARK_ONCE macro is for measuring performance of a code block by running it once.
This macro is used to measure the performance of code within a test. The code to be benchmarked is contained within a code block following this macro.
Unlike QBENCHMARK, the contents of the contained code block is only run once. The elapsed time will be reported as "0" if it's to short to be measured by the selected backend. (Use)