summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2012-03-19 23:38:42 +0000
committerIan C <ianc@noddybox.co.uk>2012-03-19 23:38:42 +0000
commitad560dc976170701ce54fbbcb99f8dc648ad8ef8 (patch)
tree2e2addd02d16b9fb5b3f491309139a09aa60c8ac /src
parent998b64d14c9d055562d8c1611813d40af4cb030b (diff)
Added Reset()
Diffstat (limited to 'src')
-rw-r--r--src/Noddybox.Emulation/Clock.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Noddybox.Emulation/Clock.cs b/src/Noddybox.Emulation/Clock.cs
index 379287e..c4c5245 100644
--- a/src/Noddybox.Emulation/Clock.cs
+++ b/src/Noddybox.Emulation/Clock.cs
@@ -89,6 +89,14 @@ namespace Noddybox.Emulation
frameCount += ticks;
}
+ /// <summary>
+ /// Reset the clock to its initial state.
+ /// </summary>
+ public void Reset()
+ {
+ frameCount = 0;
+ }
+
#endregion
#region Constructors