projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e27353
)
fix an error in TimerStat
author
Morgan Deters
<mdeters@gmail.com>
Thu, 2 Sep 2010 08:16:28 +0000
(08:16 +0000)
committer
Morgan Deters
<mdeters@gmail.com>
Thu, 2 Sep 2010 08:16:28 +0000
(08:16 +0000)
src/util/stats.h
patch
|
blob
|
history
diff --git
a/src/util/stats.h
b/src/util/stats.h
index 74afb5792a291cee287df6841ccfde2339d4d6de..a005c7689e5c7b85de9cfeff01630814afa09269 100644
(file)
--- a/
src/util/stats.h
+++ b/
src/util/stats.h
@@
-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 */