예제 #1
0
 /// <summary>
 /// Creates a new instance of the <see cref="TestTimer"/> class.
 /// </summary>
 public TestTimer()
 {
     if (StopwatchTimer.Supported)
         timer = new StopwatchTimer();
     else
         timer = new DateTimeTimer();
 }
예제 #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="TestTimer"/> class.
 /// </summary>
 public TestTimer()
 {
     if (StopwatchTimer.Supported)
     {
         timer = new StopwatchTimer();
     }
     else
     {
         timer = new DateTimeTimer();
     }
 }
예제 #3
0
 /// <summary>
 /// Initializes a new <see cref="TimerToken"/>.
 /// </summary>
 /// <param name="timer">The <see cref="ITestTimer"/> to manage</param>
 public TimerToken(ITestTimer timer)
 {
     _timer = timer;
 }