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