From 5c6961c50954c283a7404ffd34f671e098d48ee2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Feb 2003 19:02:13 +0000 Subject: [PATCH] Don't output times in "scientific" notation llvm-svn: 5544 --- llvm/lib/Support/Timer.cpp | 5 +++-- llvm/support/lib/Support/Timer.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index 3a81fc4b53f3..96d92f97191b 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -221,8 +221,9 @@ void TimerGroup::removeTimer() { std::cerr << "===" << std::string(73, '-') << "===\n" << std::string(Padding, ' ') << Name << "\n" << "===" << std::string(73, '-') - << "===\n Total Execution Time: " << Total.getProcessTime() - << " seconds (" << Total.getWallTime() + << "===\n Total Execution Time: " << std::fixed + << Total.getProcessTime() + << " seconds (" << Total.getWallTime() << std::scientific << " wall clock)\n\n"; if (Total.UserTime) diff --git a/llvm/support/lib/Support/Timer.cpp b/llvm/support/lib/Support/Timer.cpp index 3a81fc4b53f3..96d92f97191b 100644 --- a/llvm/support/lib/Support/Timer.cpp +++ b/llvm/support/lib/Support/Timer.cpp @@ -221,8 +221,9 @@ void TimerGroup::removeTimer() { std::cerr << "===" << std::string(73, '-') << "===\n" << std::string(Padding, ' ') << Name << "\n" << "===" << std::string(73, '-') - << "===\n Total Execution Time: " << Total.getProcessTime() - << " seconds (" << Total.getWallTime() + << "===\n Total Execution Time: " << std::fixed + << Total.getProcessTime() + << " seconds (" << Total.getWallTime() << std::scientific << " wall clock)\n\n"; if (Total.UserTime) -- GitLab