Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbenchmark.h File Reference
#include <QtTest/qttestglobal.h>
#include <QtTest/qbenchmarkmetric.h>
+ Include dependency graph for qbenchmark.h:

Go to the source code of this file.

Classes

class  QTest::QBenchmarkIterationController
 

Namespaces

namespace  QTest
 [15]
 

Macros

#define QBENCHMARK
 
#define QBENCHMARK_ONCE
 

Functions

void Q_TESTLIB_EXPORT QTest::setBenchmarkResult (qreal result, QBenchmarkMetric metric)
 Sets the benchmark result for this test function to result.
 

Macro Definition Documentation

◆ QBENCHMARK

#define QBENCHMARK
Value:
for (QTest::QBenchmarkIterationController _q_iteration_controller; \
_q_iteration_controller.isDone() == false; _q_iteration_controller.next())

Definition at line 40 of file qbenchmark.h.

◆ QBENCHMARK_ONCE

#define QBENCHMARK_ONCE
Value:
_q_iteration_controller.isDone() == false; _q_iteration_controller.next())

Definition at line 44 of file qbenchmark.h.