summaryrefslogtreecommitdiff
path: root/src/util/statistics_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/statistics_registry.h')
-rw-r--r--src/util/statistics_registry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/statistics_registry.h b/src/util/statistics_registry.h
index be4a71979..8246bfdd2 100644
--- a/src/util/statistics_registry.h
+++ b/src/util/statistics_registry.h
@@ -694,7 +694,7 @@ inline timespec& operator-=(timespec& a, const timespec& b) {
CheckArgument(a.tv_nsec >= 0 && a.tv_nsec < nsec_per_sec, a);
CheckArgument(b.tv_nsec >= 0 && b.tv_nsec < nsec_per_sec, b);
a.tv_sec -= b.tv_sec;
- long nsec = long(a.tv_nsec) - long(b.tv_nsec);
+ long nsec = a.tv_nsec - b.tv_nsec;
if(nsec < 0) {
nsec += nsec_per_sec;
--a.tv_sec;
@@ -762,7 +762,7 @@ inline bool operator>=(const timespec& a, const timespec& b) {
inline std::ostream& operator<<(std::ostream& os, const timespec& t) {
// assumes t.tv_nsec is in range
return os << t.tv_sec << "."
- << std::setfill('0') << std::setw(9) << std::right << t.tv_nsec;
+ << std::setfill('0') << std::setw(8) << std::right << t.tv_nsec;
}
namespace CVC4 {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback