Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QBenchmarkResult Class Reference

#include <qbenchmark_p.h>

+ Collaboration diagram for QBenchmarkResult:

Public Member Functions

 QBenchmarkResult ()=default
 
 QBenchmarkResult (const QBenchmarkContext &context, QBenchmarkMeasurerBase::Measurement m, const int iterations, bool setByMacro)
 
bool operator< (const QBenchmarkResult &other) const
 

Public Attributes

QBenchmarkContext context
 
QBenchmarkMeasurerBase::Measurement measurement = { -1, QTest::FramesPerSecond }
 
int iterations = -1
 
bool setByMacro = true
 

Detailed Description

Definition at line 60 of file qbenchmark_p.h.

Constructor & Destructor Documentation

◆ QBenchmarkResult() [1/2]

QBenchmarkResult::QBenchmarkResult ( )
default

◆ QBenchmarkResult() [2/2]

QBenchmarkResult::QBenchmarkResult ( const QBenchmarkContext context,
QBenchmarkMeasurerBase::Measurement  m,
const int  iterations,
bool  setByMacro 
)
inline

Definition at line 70 of file qbenchmark_p.h.

Member Function Documentation

◆ operator<()

bool QBenchmarkResult::operator< ( const QBenchmarkResult other) const
inline

Definition at line 79 of file qbenchmark_p.h.

References iterations, measurement, other(), and QBenchmarkMeasurerBase::Measurement::value.

+ Here is the call graph for this function:

Member Data Documentation

◆ context

QBenchmarkContext QBenchmarkResult::context

Definition at line 63 of file qbenchmark_p.h.

◆ iterations

int QBenchmarkResult::iterations = -1

Definition at line 65 of file qbenchmark_p.h.

Referenced by operator<().

◆ measurement

QBenchmarkMeasurerBase::Measurement QBenchmarkResult::measurement = { -1, QTest::FramesPerSecond }

Definition at line 64 of file qbenchmark_p.h.

Referenced by operator<().

◆ setByMacro

bool QBenchmarkResult::setByMacro = true

Definition at line 66 of file qbenchmark_p.h.


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