History

more warnings fixes

ZappoMan committed 12 years ago

Commit adb6ffe1 parent 61a90595 files · +17 −26Browse files

Showing the changes to interface/src/Util.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Util.cpp+5−5
@@ -535,7 +535,7 @@ void runTimingTests() { · 534 unmodified lines
535 }535 }
536 gettimeofday(&endTime, NULL);536 gettimeofday(&endTime, NULL);
537 elapsedMsecs = diffclock(&startTime, &endTime);537 elapsedMsecs = diffclock(&startTime, &endTime);
538 qDebug("rand() stored in array usecs: %f", 1000.0f * elapsedMsecs / (float) numTests);538 qDebug("rand() stored in array usecs: %f, first result:%d", 1000.0f * elapsedMsecs / (float) numTests, iResults[0]);
539 539
540 // Random number generation using randFloat()540 // Random number generation using randFloat()
541 gettimeofday(&startTime, NULL);541 gettimeofday(&startTime, NULL);
@@ -544,7 +544,7 @@ void runTimingTests() { · 2 unmodified lines
544 }544 }
545 gettimeofday(&endTime, NULL);545 gettimeofday(&endTime, NULL);
546 elapsedMsecs = diffclock(&startTime, &endTime);546 elapsedMsecs = diffclock(&startTime, &endTime);
547 qDebug("randFloat() stored in array usecs: %f", 1000.0f * elapsedMsecs / (float) numTests);547 qDebug("randFloat() stored in array usecs: %f, first result: %f", 1000.0f * elapsedMsecs / (float) numTests, fResults[0]);
548 548
549 // PowF function549 // PowF function
550 fTest = 1145323.2342f;550 fTest = 1145323.2342f;
@@ -567,8 +567,8 @@ void runTimingTests() { · 16 unmodified lines
567 }567 }
568 gettimeofday(&endTime, NULL);568 gettimeofday(&endTime, NULL);
569 elapsedMsecs = diffclock(&startTime, &endTime);569 elapsedMsecs = diffclock(&startTime, &endTime);
570 qDebug("vector math usecs: %f [%f msecs total for %d tests]",570 qDebug("vector math usecs: %f [%f msecs total for %d tests], last result:%f",
571 1000.0f * elapsedMsecs / (float) numTests, elapsedMsecs, numTests);571 1000.0f * elapsedMsecs / (float) numTests, elapsedMsecs, numTests, distance);
572 572
573 // Vec3 test573 // Vec3 test
574 glm::vec3 vecA(randVector()), vecB(randVector());574 glm::vec3 vecA(randVector()), vecB(randVector());
@@ -581,7 +581,7 @@ void runTimingTests() { · 6 unmodified lines
581 }581 }
582 gettimeofday(&endTime, NULL);582 gettimeofday(&endTime, NULL);
583 elapsedMsecs = diffclock(&startTime, &endTime);583 elapsedMsecs = diffclock(&startTime, &endTime);
584 qDebug("vec3 assign and dot() usecs: %f", 1000.0f * elapsedMsecs / (float) numTests);584 qDebug("vec3 assign and dot() usecs: %f, last result:%f", 1000.0f * elapsedMsecs / (float) numTests, result);
585}585}
586 586
587float loadSetting(QSettings* settings, const char* name, float defaultValue) {587float loadSetting(QSettings* settings, const char* name, float defaultValue) {