Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/testlib/qbenchmarkmeasurement.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    4242#include "QtTest/private/qbenchmarkmeasurement_p.h"
    4343#include "QtTest/private/qbenchmark_p.h"
     44
     45
    4446#include <qdebug.h>
    4547
     
    6567bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement)
    6668{
    67     return (measurement > 20);
     69    return (measurement > 0);
    6870}
    6971
     
    7375}
    7476
     77
     78
     79
     80
     81
    7582int QBenchmarkTimeMeasurer::adjustMedianCount(int)
    7683{
     
    7885}
    7986
    80 QString QBenchmarkTimeMeasurer::unitText()
     87Q()
    8188{
    82     return QLatin1String("msec");
    83 }
    84 
    85 QString QBenchmarkTimeMeasurer::metricText()
    86 {
    87     return QLatin1String("walltime");
     89    return QTest::WalltimeMilliseconds;
    8890}
    8991
     
    127129}
    128130
    129 QString QBenchmarkTickMeasurer::unitText()
     131Q()
    130132{
    131     return QLatin1String("ticks");
    132 }
    133 
    134 QString QBenchmarkTickMeasurer::metricText()
    135 {
    136     return QLatin1String("cputicks");
     133    return QTest::CPUTicks;
    137134}
    138135
Note: See TracChangeset for help on using the changeset viewer.