diff --git a/dbms/src/Common/Stopwatch.h b/dbms/src/Common/Stopwatch.h index dc3e7e12481..1036265f32a 100644 --- a/dbms/src/Common/Stopwatch.h +++ b/dbms/src/Common/Stopwatch.h @@ -39,10 +39,10 @@ public: double elapsedSeconds() const { return static_cast(elapsed()) / 1000000000ULL; } private: - UInt64 start_ns; - UInt64 stop_ns; + UInt64 start_ns = 0; + UInt64 stop_ns = 0; clockid_t clock_type; - bool is_running; + bool is_running = false; UInt64 nanoseconds() const { return StopWatchDetail::nanoseconds(clock_type); } };