File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/rostests/rosautotest Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments