Don't output times in "scientific" notation
authorChris Lattner <sabre@nondot.org>
Wed, 12 Feb 2003 19:02:13 +0000 (19:02 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Feb 2003 19:02:13 +0000 (19:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5544 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Timer.cpp
support/lib/Support/Timer.cpp

index 3a81fc4b53f30213ca9fd430c680f7e26efb6ccf..96d92f97191b76ac1b0ed3b0d1c1f31d957e4138 100644 (file)
@@ -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)
index 3a81fc4b53f30213ca9fd430c680f7e26efb6ccf..96d92f97191b76ac1b0ed3b0d1c1f31d957e4138 100644 (file)
@@ -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)