196 double real_time, user_time, system_time;
197 valid = os::getTimesSecs(&real_time, &user_time, &system_time);
198 if (valid) {
199
200 user_secs = user_time - _starting_user_time;
201 system_secs = system_time - _starting_system_time;
202 real_secs = real_time - _starting_real_time;
203
204 _logfile->print(" [Times: user=%3.2f sys=%3.2f, real=%3.2f secs] ",
205 user_secs, system_secs, real_secs);
206
207 } else {
208 _logfile->print("[Invalid result in TraceCPUTime]");
209 }
210 } else {
211 _logfile->print("[Error in TraceCPUTime]");
212 }
213 if (_print_cr) {
214 _logfile->print_cr("");
215 }
216 }
217 }
|
196 double real_time, user_time, system_time;
197 valid = os::getTimesSecs(&real_time, &user_time, &system_time);
198 if (valid) {
199
200 user_secs = user_time - _starting_user_time;
201 system_secs = system_time - _starting_system_time;
202 real_secs = real_time - _starting_real_time;
203
204 _logfile->print(" [Times: user=%3.2f sys=%3.2f, real=%3.2f secs] ",
205 user_secs, system_secs, real_secs);
206
207 } else {
208 _logfile->print("[Invalid result in TraceCPUTime]");
209 }
210 } else {
211 _logfile->print("[Error in TraceCPUTime]");
212 }
213 if (_print_cr) {
214 _logfile->print_cr("");
215 }
216 _logfile->flush();
217 }
218 }
|