diff --git a/RecastDemo/Source/SampleInterfaces.cpp b/RecastDemo/Source/SampleInterfaces.cpp index 44b306b..72bb34c 100644 --- a/RecastDemo/Source/SampleInterfaces.cpp +++ b/RecastDemo/Source/SampleInterfaces.cpp @@ -68,7 +68,7 @@ void BuildContext::doStartTimer(const rcTimerLabel label) void BuildContext::doStopTimer(const rcTimerLabel label) { const TimeVal endTime = getPerfTime(); - const int deltaTime = (int)(endTime - m_startTime[label]); + const TimeVal deltaTime = endTime - m_startTime[label]; if (m_accTime[label] == -1) m_accTime[label] = deltaTime; else