- Changed Windows to use the performance counter instead of rdtsc.

SVN r1143 (trunk)
This commit is contained in:
Randy Heit 2008-08-10 03:56:53 +00:00
commit 9ad93639c5
12 changed files with 379 additions and 318 deletions

View file

@ -479,8 +479,8 @@ void D_Display ()
if (nodrawers)
return; // for comparative timing / profiling
cycle_t cycles;
cycle_t cycles;
cycles.Reset();
cycles.Clock();
@ -2653,7 +2653,7 @@ static double bestwallcycles = HUGE_VAL;
ADD_STAT (wallcycles)
{
FString out;
FString out;
double cycles = WallCycles.Time();
if (cycles && cycles < bestwallcycles)
bestwallcycles = cycles;
@ -2680,7 +2680,7 @@ static double bestscancycles = HUGE_VAL;
ADD_STAT (scancycles)
{
FString out;
FString out;
double scancycles = WallScanCycles.Time();
if (scancycles && scancycles < bestscancycles)
bestscancycles = scancycles;