Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qbenchmark.h File Reference

(b08ba96fd0eed8517a8a60c0d8d4064a7ab90498)

#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.