public void StartStopImmediately()
 {
     TimeMonitor timer = new TimeMonitor();
     timer.Start();
     timer.Stop();
     Assert.LowerEqualThan(0, timer.Duration);
 }
 public void StartStopShowValues()
 {
     TimeMonitor timer = new TimeMonitor();
     timer.Start();
     Random rnd = new Random();
     for (int i = 0; i < 10000; ++i)
         rnd.NextDouble();
     timer.Stop();
     TypeHelper.ShowPropertyValues(timer);
 }
Пример #3
0
 public CountDownTimer(double maxDuration)
 {
     this.maxDuration = maxDuration;
     this.timer = new TimeMonitor();
     timer.Start();
 }