public void BasicTest()
 {
     Utilities.Profiler.StopWatch TestObject = new Utilities.Profiler.StopWatch();
     TestObject.Start();
     Thread.Sleep(100);
     TestObject.Stop();
     Assert.InRange(TestObject.ElapsedTime, 80, 120);
 }
 public void BasicTest()
 {
     Utilities.Profiler.StopWatch TestObject = new Utilities.Profiler.StopWatch();
     TestObject.Start();
     Thread.Sleep(100);
     TestObject.Stop();
     Assert.InRange(TestObject.ElapsedTime, 80, 120);
 }
 /// <summary>
 /// Stops the timer and registers the information
 /// </summary>
 public virtual void Stop()
 {
     if (Running)
     {
         Running = false;
         StopWatch.Stop();
         ProfilerManager.Instance.AddItem(Function, StopWatch.StartTime, StopWatch.StopTime);
     }
 }