Fasttimer was using incorrect clock count precision.

This commit is contained in:
Shyotl
2011-06-08 23:11:41 -05:00
parent ec9da17ed0
commit 858f4d1487

View File

@@ -226,7 +226,7 @@ public:
//gTimerBins[gCurTimerBin]++;
//LLTimer::sNumTimerCalls++;
U64 cpu_clocks = getCPUClockCount64();
U64 cpu_clocks = getCPUClockCount32();
sStart[sCurDepth] = cpu_clocks;
sCurDepth++;
@@ -241,7 +241,7 @@ public:
// These don't get counted, because they use CPU clockticks
//gTimerBins[gCurTimerBin]++;
//LLTimer::sNumTimerCalls++;
end = getCPUClockCount64();
end = getCPUClockCount32();
sCurDepth--;
delta = end - sStart[sCurDepth];