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