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:
Jakob Botsch Nielsen
2016-01-10 18:43:34 +01:00
parent ac0316e6a8
commit 09080b5272
6 changed files with 12 additions and 13 deletions

View File

@@ -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, ...)