From 6057ad9d20232ce3a5a27bceee397237a698bff2 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 15 May 2012 23:01:56 +0000 Subject: Changed the cycle counter to an arbitrarily resettable counter. --- src/Noddybox.Emulation/Clock.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Noddybox.Emulation/Clock.cs b/src/Noddybox.Emulation/Clock.cs index 7347900..4765086 100644 --- a/src/Noddybox.Emulation/Clock.cs +++ b/src/Noddybox.Emulation/Clock.cs @@ -103,9 +103,9 @@ namespace Noddybox.Emulation public ulong TotalCyclesPerFrame {get; private set;} /// - /// Gets the number of ticks since the last event. + /// Gets the number of ticks since the last time the count was reset from here. /// - public uint Cycles {get {return cycles;}} + public uint CycleCount {get; set;} #endregion @@ -118,6 +118,7 @@ namespace Noddybox.Emulation public void Add(uint ticks) { cycles += ticks; + CycleCount += ticks; // Check pre-frame end // -- cgit v1.2.3