static void Main() { TimerExample.Start(); // Part 3: call PrintTimes every 3 seconds. while (true) { // Print results. TimerExample.PrintTimes(); // Wait 2 seconds. Console.WriteLine("WAITING"); System.Threading.Thread.Sleep(2000); } }
public void TestCase() { var sut = new TimerExample(); Assert.Greater(100, sut.Count); }
public void Main() { var te = new TimerExample(1000, 2000, 2); }