Changeset 561 for trunk/src/testlib/qbenchmark.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/testlib/qbenchmark.cpp
r2 r561 1 2 1 /**************************************************************************** 3 2 ** 4 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 5 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 6 6 ** 7 7 ** This file is part of the QtTest module of the Qt Toolkit. … … 22 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 23 23 ** 24 ** In addition, as a special exception, Nokia gives you certain 25 ** additional rights. These rights are described in the Nokia Qt LGPL 26 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 27 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28 27 ** 29 28 ** GNU General Public License Usage … … 35 34 ** met: http://www.gnu.org/copyleft/gpl.html. 36 35 ** 37 ** If you are unsure which license is appropriate for your use, please38 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 39 38 ** $QT_END_LICENSE$ 40 39 ** … … 118 117 119 118 QBenchmarkTestMethodData::QBenchmarkTestMethodData() 120 :resultAccepted(false), iterationCount(-1)119 :resultAccepted(false), iterationCount(-1) 121 120 { 122 121 … … 159 158 accepted = true; 160 159 160 161 162 163 164 161 165 // Test the result directly without calling the measurer if the minimum time 162 166 // has been specifed on the command line with -minimumvalue. … … 176 180 } 177 181 178 /*! \internal 182 /*! 183 \class QTest::QBenchmarkIterationController 184 \internal 185 179 186 The QBenchmarkIterationController class is used by the QBENCHMARK macro to 180 187 drive the benchmarking loop. It is repsonsible for starting and stopping 181 188 the timing measurements as well as calling the result reporting functions. 182 189 */ 190 191 192 193 194 195 196 197 198 199 200 183 201 QTest::QBenchmarkIterationController::QBenchmarkIterationController() 184 202 { 203 185 204 QTest::beginBenchmarkMeasurement(); 186 i = 0; 187 } 205 } 206 188 207 /*! \internal 189 208 */ … … 197 216 bool QTest::QBenchmarkIterationController::isDone() 198 217 { 218 219 199 220 return i >= QTest::iterationCount(); 200 221 } … … 220 241 QBenchmarkTestMethodData::current->adjustIterationCount(count); 221 242 } 243 222 244 /*! \internal 223 245 */
Note:
See TracChangeset
for help on using the changeset viewer.