diff --git a/ICD.Common.Utils/Timers/IcdStopwatch.cs b/ICD.Common.Utils/Timers/IcdStopwatch.cs index e920508..00b3421 100644 --- a/ICD.Common.Utils/Timers/IcdStopwatch.cs +++ b/ICD.Common.Utils/Timers/IcdStopwatch.cs @@ -1,6 +1,5 @@ #if SIMPLSHARP using Crestron.SimplSharp; - #else using System.Diagnostics; #endif @@ -47,21 +46,39 @@ namespace ICD.Common.Utils.Timers #region Methods + /// + /// Stops the stopwatch at the current elapsed time. + /// public void Stop() { m_Stopwatch.Stop(); } + /// + /// Starts or resumes the stopwatch from the current elapsed time. + /// public void Start() { m_Stopwatch.Start(); } + /// + /// Stops the stopwatch and resets the elapsed time to 0. + /// public void Reset() { m_Stopwatch.Reset(); } + /// + /// Resets the stopwatch and starts again from an elapsed time of 0. + /// + public void Restart() + { + Reset(); + Start(); + } + #endregion } }