diff --git a/tools/phonon/timer.cpp b/tools/phonon/timer.cpp index b94bed40b1..9ae4e94441 100644 --- a/tools/phonon/timer.cpp +++ b/tools/phonon/timer.cpp @@ -42,7 +42,7 @@ void Timer::print() { if ( (flag&3) != 3) return; - cpu_time_used = ((double) (t2 - t1)) / CLOCKS_PER_SEC; + double cpu_time_used = ((double) (t2 - t1)) / CLOCKS_PER_SEC; printf("Total CPU time used: %g seconds.\n", cpu_time_used); return; diff --git a/tools/phonon/timer.h b/tools/phonon/timer.h index 993a33f9f3..b2a4e4fd9b 100644 --- a/tools/phonon/timer.h +++ b/tools/phonon/timer.h @@ -14,8 +14,6 @@ public: private: clock_t t1, t2; - double cpu_time_used; - int flag; };