src/testlib/qbenchmark.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   157     // Always accept the result if the iteration count has been
   157     // Always accept the result if the iteration count has been
   158     // specified on the command line with -iterations.
   158     // specified on the command line with -iterations.
   159     if (QBenchmarkGlobalData::current->iterationCount != -1)
   159     if (QBenchmarkGlobalData::current->iterationCount != -1)
   160         accepted = true;
   160         accepted = true;
   161 
   161 
   162     if (QBenchmarkTestMethodData::current->runOnce || !setByMacro) {
   162     else if (QBenchmarkTestMethodData::current->runOnce || !setByMacro) {
   163         iterationCount = 1;
   163         iterationCount = 1;
   164         accepted = true;
   164         accepted = true;
   165     }
   165     }
   166 
   166 
   167     // Test the result directly without calling the measurer if the minimum time 
   167     // Test the result directly without calling the measurer if the minimum time