fix an error in TimerStat
authorMorgan Deters <mdeters@gmail.com>
Thu, 2 Sep 2010 08:16:28 +0000 (08:16 +0000)
committerMorgan Deters <mdeters@gmail.com>
Thu, 2 Sep 2010 08:16:28 +0000 (08:16 +0000)
src/util/stats.h

index 74afb5792a291cee287df6841ccfde2339d4d6de..a005c7689e5c7b85de9cfeff01630814afa09269 100644 (file)
@@ -326,6 +326,7 @@ public:
     if(__CVC4_USE_STATISTICS) {
       AlwaysAssert(!d_running);
       clock_gettime(CLOCK_REALTIME, &d_start);
+      d_running = true;
     }
   }
 
@@ -335,6 +336,7 @@ public:
       ::timespec end;
       clock_gettime(CLOCK_REALTIME, &end);
       d_data += end - d_start;
+      d_running = false;
     }
   }
 };/* class TimerStat */