Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QTest::QBenchmarkIterationController Class Reference

#include <qbenchmark.h>

+ Collaboration diagram for QTest::QBenchmarkIterationController:

Public Types

enum  RunMode { RepeatUntilValidMeasurement , RunOnce }
 

Public Member Functions

 QBenchmarkIterationController ()
 
 QBenchmarkIterationController (RunMode runMode)
 
 ~QBenchmarkIterationController ()
 
bool isDone () const noexcept
 
void next () noexcept
 

Public Attributes

int i
 

Detailed Description

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.

Member Enumeration Documentation

◆ RunMode

Enumerator
RepeatUntilValidMeasurement 
RunOnce 

Definition at line 27 of file qbenchmark.h.

Constructor & Destructor Documentation

◆ QBenchmarkIterationController() [1/2]

QTest::QBenchmarkIterationController::QBenchmarkIterationController ( )

Definition at line 154 of file qbenchmark.cpp.

◆ QBenchmarkIterationController() [2/2]

QTest::QBenchmarkIterationController::QBenchmarkIterationController ( RunMode runMode)

Definition at line 146 of file qbenchmark.cpp.

◆ ~QBenchmarkIterationController()

QTest::QBenchmarkIterationController::~QBenchmarkIterationController ( )

Definition at line 162 of file qbenchmark.cpp.

Member Function Documentation

◆ isDone()

bool QTest::QBenchmarkIterationController::isDone ( ) const
noexcept

Definition at line 169 of file qbenchmark.cpp.

◆ next()

void QTest::QBenchmarkIterationController::next ( )
noexcept

Definition at line 178 of file qbenchmark.cpp.

Member Data Documentation

◆ i

int QTest::QBenchmarkIterationController::i

Definition at line 33 of file qbenchmark.h.


The documentation for this class was generated from the following files: