diff options
author | Ian C <ianc@noddybox.co.uk> | 2012-03-19 23:38:42 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2012-03-19 23:38:42 +0000 |
commit | ad560dc976170701ce54fbbcb99f8dc648ad8ef8 (patch) | |
tree | 2e2addd02d16b9fb5b3f491309139a09aa60c8ac | |
parent | 998b64d14c9d055562d8c1611813d40af4cb030b (diff) |
Added Reset()
-rw-r--r-- | src/Noddybox.Emulation/Clock.cs | 8 |
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
|