From 24d6c0c5fa6608d1cd2ed6d8678e22d5f4bd0b9e Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Mon, 15 Jun 2026 12:28:56 +0100 Subject: [PATCH] Test harness timer limited to *just* CPU run timings --- EightBit/TestHarness.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/EightBit/TestHarness.cs b/EightBit/TestHarness.cs index e0ffcb9..c9f8308 100644 --- a/EightBit/TestHarness.cs +++ b/EightBit/TestHarness.cs @@ -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}"); } } }