From ad560dc976170701ce54fbbcb99f8dc648ad8ef8 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 19 Mar 2012 23:38:42 +0000 Subject: Added Reset() --- src/Noddybox.Emulation/Clock.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } + /// + /// Reset the clock to its initial state. + /// + public void Reset() + { + frameCount = 0; + } + #endregion #region Constructors -- cgit v1.2.3