summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2012-05-08 22:52:56 +0000
committerIan C <ianc@noddybox.co.uk>2012-05-08 22:52:56 +0000
commit6973a6d977811beb1d78e5e9147be8f9cfcd95fe (patch)
tree3fe8151173dc44ae575ad5d0ccc8680478e918f3 /src
parent026d8b1797dc90f989615c4366fcdf714928f14c (diff)
Added property to get ticks. To be extended to allow timing from arbitary points.
Diffstat (limited to 'src')
-rw-r--r--src/Noddybox.Emulation/Clock.cs7
1 files changed, 6 insertions, 1 deletions
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
/// </summary>
public ulong TotalCyclesPerFrame {get; private set;}
+ /// <summary>
+ /// Gets the number of ticks since the last event.
+ /// </summary>
+ public uint Cycles {get {return cycles;}}
+
#endregion
#region Public members