diff --git a/lib/timer.cpp b/lib/timer.cpp index 0771b271b..025a48cae 100644 --- a/lib/timer.cpp +++ b/lib/timer.cpp @@ -75,7 +75,7 @@ Timer::Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf : _str(str) , mTimerResults(timerResults) , _start(0) - , _showtimeMode(showtimeMode) + , mShowTimeMode(showtimeMode) , mStopped(false) { if (showtimeMode != SHOWTIME_NONE) @@ -89,11 +89,11 @@ Timer::~Timer() void Timer::Stop() { - if ((_showtimeMode != SHOWTIME_NONE) && !mStopped) { + if ((mShowTimeMode != SHOWTIME_NONE) && !mStopped) { const std::clock_t end = std::clock(); const std::clock_t diff = end - _start; - if (_showtimeMode == SHOWTIME_FILE) { + if (mShowTimeMode == SHOWTIME_FILE) { const double sec = (double)diff / CLOCKS_PER_SEC; std::cout << _str << ": " << sec << "s" << std::endl; } else { diff --git a/lib/timer.h b/lib/timer.h index 5567eee98..db3d0576b 100644 --- a/lib/timer.h +++ b/lib/timer.h @@ -80,7 +80,7 @@ private: const std::string _str; TimerResultsIntf* mTimerResults; std::clock_t _start; - const unsigned int _showtimeMode; + const unsigned int mShowTimeMode; bool mStopped; }; //---------------------------------------------------------------------------