Reactos

[ROSAUTOTEST] Final changes to improvements (#7857)

Follow-up of PR #7823.

authored by

Doug Lyons and committed by
GitHub
208dfd22 8d7eca94

+3 -3
+3 -3
modules/rostests/rosautotest/main.cpp
··· 113 113 ss << endl 114 114 << endl 115 115 << "[ROSAUTOTEST] System uptime " << setprecision(2) << fixed; 116 - ss << ((float)GetTickCount()/1000) << " seconds" << endl; 116 + ss << (float)TestStartTime / 1000 << " seconds" << endl; 117 117 StringOut(ss.str()); 118 118 119 119 /* Report tests startup */ ··· 156 156 157 157 /* Show the beginning time again */ 158 158 ss << "[ROSAUTOTEST] System uptime at start was " << setprecision(2) << fixed; 159 - ss << ((float)TestStartTime / 1000) << " seconds" << endl; 159 + ss << (float)TestStartTime / 1000 << " seconds" << endl; 160 160 161 161 /* Show the time now so that we can see how long the tests took */ 162 162 TestEndTime = GetTickCount(); 163 163 ss << endl 164 164 << "[ROSAUTOTEST] System uptime at end was " << setprecision(2) << fixed; 165 165 ss << ((float)TestEndTime / 1000) << " seconds" << endl; 166 - ss << "[ROSAUTOTEST] Duration was " << (((float)TestEndTime - (float)TestStartTime) / 1000) / 60; 166 + ss << "[ROSAUTOTEST] Duration was " << (float)(TestEndTime - TestStartTime) / (60 * 1000); 167 167 ss << " minutes" << endl; 168 168 StringOut(ss.str()); 169 169