Skip to content

Commit 208dfd2

Browse files
authored
[ROSAUTOTEST] Final changes to improvements (reactos#7857)
Follow-up of PR reactos#7823.
1 parent 8d7eca9 commit 208dfd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/rostests/rosautotest/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ wmain(int argc, wchar_t* argv[])
113113
ss << endl
114114
<< endl
115115
<< "[ROSAUTOTEST] System uptime " << setprecision(2) << fixed;
116-
ss << ((float)GetTickCount()/1000) << " seconds" << endl;
116+
ss << (float)TestStartTime / 1000 << " seconds" << endl;
117117
StringOut(ss.str());
118118

119119
/* Report tests startup */
@@ -156,14 +156,14 @@ wmain(int argc, wchar_t* argv[])
156156

157157
/* Show the beginning time again */
158158
ss << "[ROSAUTOTEST] System uptime at start was " << setprecision(2) << fixed;
159-
ss << ((float)TestStartTime / 1000) << " seconds" << endl;
159+
ss << (float)TestStartTime / 1000 << " seconds" << endl;
160160

161161
/* Show the time now so that we can see how long the tests took */
162162
TestEndTime = GetTickCount();
163163
ss << endl
164164
<< "[ROSAUTOTEST] System uptime at end was " << setprecision(2) << fixed;
165165
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);
167167
ss << " minutes" << endl;
168168
StringOut(ss.str());
169169

0 commit comments

Comments
 (0)