From 6973a6d977811beb1d78e5e9147be8f9cfcd95fe Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 8 May 2012 22:52:56 +0000 Subject: Added property to get ticks. To be extended to allow timing from arbitary points. --- src/Noddybox.Emulation/Clock.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Noddybox.Emulation/Clock.cs b/src/Noddybox.Emulation/Clock.cs index 7fcd0fb..7347900 100644 --- a/src/Noddybox.Emulation/Clock.cs +++ b/src/Noddybox.Emulation/Clock.cs @@ -31,7 +31,7 @@ namespace Noddybox.Emulation private uint noLines; private uint cyclesPerVbl; - private int line; + private int line; private uint cycles; #endregion @@ -102,6 +102,11 @@ namespace Noddybox.Emulation /// public ulong TotalCyclesPerFrame {get; private set;} + /// + /// Gets the number of ticks since the last event. + /// + public uint Cycles {get {return cycles;}} + #endregion #region Public members -- cgit v1.2.3