src/testlib/qbenchmarkmeasurement_p.h
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    51 // version without notice, or even be removed.
    51 // version without notice, or even be removed.
    52 //
    52 //
    53 // We mean it.
    53 // We mean it.
    54 //
    54 //
    55 
    55 
    56 #include <QtCore/qdatetime.h>
    56 #include <QtCore/qelapsedtimer.h>
    57 #include "3rdparty/cycle_p.h"
    57 #include "3rdparty/cycle_p.h"
    58 #include "qbenchmark.h"
    58 #include "qbenchmark.h"
    59 
    59 
    60 QT_BEGIN_NAMESPACE
    60 QT_BEGIN_NAMESPACE
    61 
    61 
    85     int adjustIterationCount(int sugestion);
    85     int adjustIterationCount(int sugestion);
    86     int adjustMedianCount(int suggestion);
    86     int adjustMedianCount(int suggestion);
    87     bool needsWarmupIteration();
    87     bool needsWarmupIteration();
    88     QTest::QBenchmarkMetric metricType();
    88     QTest::QBenchmarkMetric metricType();
    89 private:
    89 private:
    90     QTime time;
    90     QElapsedTimer time;
    91 };
    91 };
    92 
    92 
    93 #ifdef HAVE_TICK_COUNTER // defined in 3rdparty/cycle_p.h
    93 #ifdef HAVE_TICK_COUNTER // defined in 3rdparty/cycle_p.h
    94 
    94 
    95 class QBenchmarkTickMeasurer : public QBenchmarkMeasurerBase
    95 class QBenchmarkTickMeasurer : public QBenchmarkMeasurerBase