spec/build/graph/program/Benchmark.cpp in build-graph-1.0.3 vs spec/build/graph/program/Benchmark.cpp in build-graph-1.0.4
- old
+ new
@@ -16,19 +16,19 @@
static TimeT system_time () {
static struct timeval t;
gettimeofday (&t, (struct timezone*)0);
return ((TimeT)t.tv_sec) + ((TimeT)t.tv_usec / 1000000.0);
}
-
+
WallTime::WallTime () {
this->reset();
}
-
+
void WallTime::reset () {
this->_last = system_time();
this->_total = 0.0;
}
-
+
TimeT WallTime::total () const {
TimeT current = system_time();
this->_total += current - this->_last;
this->_last = current;
return this->_total;