[NTVDM]: fix MIPS count in cases display delays get longer than 1 sec...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 19 Oct 2014 17:24:57 +0000 (17:24 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 19 Oct 2014 17:24:57 +0000 (17:24 +0000)
svn path=/trunk/; revision=64828

reactos/subsystems/ntvdm/clock.c

index 46241f4..c9d9a5c 100644 (file)
@@ -149,7 +149,7 @@ VOID ClockUpdate(VOID)
 #ifdef IPS_DISPLAY
     if ((CurrentTickCount - LastCyclePrintout) >= 1000)
     {
-        DPRINT1("NTVDM: %lu Instructions Per Second; TimerTicks = %I64d\n", Cycles, TimerTicks);
+        DPRINT1("NTVDM: %lu Instructions Per Second; TimerTicks = %I64d\n", Cycles * 1000 / (CurrentTickCount - LastCyclePrintout), TimerTicks);
         LastCyclePrintout = CurrentTickCount;
         Cycles = 0;
     }