diff --git a/src/bench/bench.h b/src/bench/bench.h index ab5c3d5604..071a5dc9c7 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -59,12 +59,17 @@ namespace benchmark { uint64_t minCycles; uint64_t maxCycles; public: - State(std::string _name, duration _maxElapsed) : name(_name), maxElapsed(_maxElapsed), count(0) { - minTime = duration::max(); - maxTime = duration::zero(); - minCycles = std::numeric_limits::max(); - maxCycles = std::numeric_limits::min(); - countMask = 1; + State(std::string _name, duration _maxElapsed) : + name(_name), + maxElapsed(_maxElapsed), + minTime(duration::max()), + maxTime(duration::zero()), + count(0), + countMask(1), + beginCycles(0), + lastCycles(0), + minCycles(std::numeric_limits::max()), + maxCycles(std::numeric_limits::min()) { } bool KeepRunning(); };