4#include <QtTest/private/qbenchmarktimemeasurers_p.h>
5#include <QtTest/private/qbenchmark_p.h>
6#include <QtTest/private/qbenchmarkmetric_p.h>
7#include <QtTest/qbenchmark.h>
14void QBenchmarkTimeMeasurer::start()
19QList<QBenchmarkMeasurerBase::Measurement> QBenchmarkTimeMeasurer::stop()
21 return { { qreal(time.elapsed()), QTest::WalltimeMilliseconds } };
24bool QBenchmarkTimeMeasurer::isMeasurementAccepted(Measurement measurement)
26 return (measurement.value > 50);
29int QBenchmarkTimeMeasurer::adjustIterationCount(
int suggestion)
34bool QBenchmarkTimeMeasurer::needsWarmupIteration()
39int QBenchmarkTimeMeasurer::adjustMedianCount(
int)
44#ifdef HAVE_TICK_COUNTER
46void QBenchmarkTickMeasurer::start()
48 startTicks = getticks();
51QList<QBenchmarkMeasurerBase::Measurement> QBenchmarkTickMeasurer::stop()
53 CycleCounterTicks now = getticks();
54 return { { qreal(elapsed(now, startTicks)), QTest::CPUTicks } };
57bool QBenchmarkTickMeasurer::isMeasurementAccepted(QBenchmarkMeasurerBase::Measurement)
62int QBenchmarkTickMeasurer::adjustIterationCount(
int)
67int QBenchmarkTickMeasurer::adjustMedianCount(
int)
72bool QBenchmarkTickMeasurer::needsWarmupIteration()
Combined button and popup list for selecting options.