src/testlib/qbenchmarkmeasurement.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    64     return time.elapsed();
    64     return time.elapsed();
    65 }
    65 }
    66 
    66 
    67 bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement)
    67 bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement)
    68 {
    68 {
    69     return (measurement > 20);
    69     return (measurement > 50);
    70 }
    70 }
    71 
    71 
    72 int QBenchmarkTimeMeasurer::adjustIterationCount(int suggestion)
    72 int QBenchmarkTimeMeasurer::adjustIterationCount(int suggestion)
    73 { 
    73 { 
    74     return suggestion; 
    74     return suggestion; 
       
    75 }
       
    76 
       
    77 bool QBenchmarkTimeMeasurer::needsWarmupIteration()
       
    78 {
       
    79     return true;
    75 }
    80 }
    76 
    81 
    77 int QBenchmarkTimeMeasurer::adjustMedianCount(int)
    82 int QBenchmarkTimeMeasurer::adjustMedianCount(int)
    78 { 
    83 { 
    79     return 1; 
    84     return 1;