- Changed Windows to use the performance counter instead of rdtsc.
SVN r1143 (trunk)
This commit is contained in:
parent
ad96225213
commit
9ad93639c5
12 changed files with 379 additions and 318 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue