diff options
author | Ian C <ianc@noddybox.co.uk> | 2012-05-15 23:01:56 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2012-05-15 23:01:56 +0000 |
commit | 6057ad9d20232ce3a5a27bceee397237a698bff2 (patch) | |
tree | 505e2638ab25ca464b1ab9b22a5e79904003d69c | |
parent | 6973a6d977811beb1d78e5e9147be8f9cfcd95fe (diff) |
Changed the cycle counter to an arbitrarily resettable counter.
-rw-r--r-- | src/Noddybox.Emulation/Clock.cs | 5 |
1 files changed, 3 insertions, 2 deletions
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;}
/// <summary>
- /// Gets the number of ticks since the last event.
+ /// Gets the number of ticks since the last time the count was reset from here.
/// </summary>
- 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
//
|