mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-13 08:59:25 +00:00
Fix time measuring on Windows
The demo relied on the build context returning accumulated times in microseconds. On Windows this was using QueryPerformanceCounter directly which has a higher resolution, thus returning wrong measured times. We now report the accumulated times in microseconds on all platforms.
This commit is contained in:
@@ -79,7 +79,7 @@ void BuildContext::doStopTimer(const rcTimerLabel label)
|
||||
|
||||
int BuildContext::doGetAccumulatedTime(const rcTimerLabel label) const
|
||||
{
|
||||
return m_accTime[label];
|
||||
return getPerfTimeUsec(m_accTime[label]);
|
||||
}
|
||||
|
||||
void BuildContext::dumpLog(const char* format, ...)
|
||||
|
||||
Reference in New Issue
Block a user