Test harness timer limited to *just* CPU run timings

This commit is contained in:
Adrian Conlon committed 2026-06-15 12:28:56 +01:00
1 parent 25dcb0c4c0
commit 24d6c0c5fa
1 file changed
+2 -4
+2 -4
View File
@@ -32,23 +32,21 @@ namespace EightBit
public void Run()
{
this._timer.Start();
this._board.Initialize();
this._board.RaisePOWER();
this._timer.Start();
while (this._cpu.Powered)
{
this._totalCycles += this._cpu.Step();
}
this._timer.Stop();
Console.Out.WriteLine();
Console.Out.WriteLine($"Guest cycles = {this._totalCycles:N0}");
Console.Out.WriteLine($"Elapsed time (at {this.ActualClockSpeed:g3}MHz actual) = {this.ActualElapsed}");
Console.Out.WriteLine($"Elapsed time (at {(this.TargetClockSpeed):g3}MHz target) = {this.TargetElapsed}");
Console.Out.WriteLine($"Elapsed time (at {this.TargetClockSpeed:g3}MHz target) = {this.TargetElapsed}");
}
}
}