Make more compatible with GCC 2.96

llvm-svn: 5550
This commit is contained in:
Chris Lattner 2003-02-13 16:25:28 +00:00
parent a6b38bd7f5
commit 4e6fad05a6
2 changed files with 10 additions and 8 deletions

View File

@ -215,10 +215,11 @@ void TimerGroup::removeTimer() {
std::cerr << "===" << std::string(73, '-') << "===\n"
<< std::string(Padding, ' ') << Name << "\n"
<< "===" << std::string(73, '-')
<< "===\n Total Execution Time: " << std::fixed
<< Total.getProcessTime()
<< " seconds (" << Total.getWallTime() << std::scientific
<< " wall clock)\n\n";
<< "===\n Total Execution Time: ";
// Hack for GCC 2.96... :( it doesn't support manipulators!
fprintf(stderr, "%.4f seconds (%.4f wall clock)\n\n",
Total.getProcessTime(), Total.getWallTime());
if (Total.UserTime)
std::cerr << " ---User Time---";

View File

@ -215,10 +215,11 @@ void TimerGroup::removeTimer() {
std::cerr << "===" << std::string(73, '-') << "===\n"
<< std::string(Padding, ' ') << Name << "\n"
<< "===" << std::string(73, '-')
<< "===\n Total Execution Time: " << std::fixed
<< Total.getProcessTime()
<< " seconds (" << Total.getWallTime() << std::scientific
<< " wall clock)\n\n";
<< "===\n Total Execution Time: ";
// Hack for GCC 2.96... :( it doesn't support manipulators!
fprintf(stderr, "%.4f seconds (%.4f wall clock)\n\n",
Total.getProcessTime(), Total.getWallTime());
if (Total.UserTime)
std::cerr << " ---User Time---";