diff --git a/src/core/stopwatch.cpp b/src/core/stopwatch.cpp --- a/src/core/stopwatch.cpp +++ b/src/core/stopwatch.cpp @@ -27,6 +27,12 @@ void Stopwatch::setGranularity(Granularity g) { m_granularity = g; + + // whenever granularity is changed, also apply that granularity to the timer event + if (m_timerId != INACTIVE_TIMER_ID) { + killTimer(m_timerId); + m_timerId = startTimer(granularity()); + } } bool Stopwatch::isRunning() const