From efc523c0c9ad0d4506b736b90b12b44d457c0b6e Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Mon, 10 Mar 2025 12:27:15 +0000 Subject: [PATCH] fixing timerThread to count in milliseconds --- src/minefield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minefield.cpp b/src/minefield.cpp index 0f299bb..f854b76 100644 --- a/src/minefield.cpp +++ b/src/minefield.cpp @@ -21,7 +21,7 @@ void MineField::timerTick() { auto now = std::chrono::system_clock::now(); const auto duration = now - start; std::chrono::milliseconds ms = std::chrono::duration_cast(duration); - m_time += duration.count(); + m_time += ms.count(); timerSignal.emit(m_time); start = std::chrono::system_clock::now(); }