[MOAB-dev] r3985 - MOAB/trunk/tools

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Jun 1 14:04:21 CDT 2010


Author: kraftche
Date: 2010-06-01 14:04:21 -0500 (Tue, 01 Jun 2010)
New Revision: 3985

Modified:
   MOAB/trunk/tools/convert.cpp
Log:
fix confusing timing output when time exceeds 2 minutes

Modified: MOAB/trunk/tools/convert.cpp
===================================================================
--- MOAB/trunk/tools/convert.cpp	2010-06-01 13:00:01 UTC (rev 3984)
+++ MOAB/trunk/tools/convert.cpp	2010-06-01 19:04:21 UTC (rev 3985)
@@ -621,9 +621,10 @@
   ticks *= clk_per_sec/100;
   clock_t centi = ticks % 100;
   clock_t seconds = ticks / 100;
+  stream << prefix;
   if (seconds < 120)
   {
-    stream << prefix << (ticks / 100) << "." << centi << "s" << std::endl;
+    stream << (ticks / 100) << "." << centi << "s" << std::endl;
   }
   else
   {





































More information about the moab-dev mailing list