diff --git a/src/HamsterNet.cpp b/src/HamsterNet.cpp index 9851f5a..855b110 100644 --- a/src/HamsterNet.cpp +++ b/src/HamsterNet.cpp @@ -301,7 +301,7 @@ bool HamsterNet::StartRace(const std::string& map) int HamsterNet::GetCurrentRaceTime(){ std::chrono::duration duration = std::chrono::system_clock::now() - m_tp1; - return static_cast(duration.count()); + return static_cast(duration.count() - m_pause_time); } std::pair HamsterNet::FinishRace()