diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-13 16:25:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-13 16:25:28 +0000 |
commit | 8166b7cdb891e0d3c5789260248211a8b6e99787 (patch) | |
tree | a0ed05f788a24df8164a377ee288aac4d2c1ab23 /support | |
parent | e040f9706697b786a1288971b6d5ab96107bb799 (diff) |
Make more compatible with GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r-- | support/lib/Support/Timer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/support/lib/Support/Timer.cpp b/support/lib/Support/Timer.cpp index e03c3121d9..62876539ff 100644 --- a/support/lib/Support/Timer.cpp +++ b/support/lib/Support/Timer.cpp @@ -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---"; |