コード例 #1
0
 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);
     }
 }
コード例 #2
0
        public void TestCase()
        {
            var sut = new TimerExample();

            Assert.Greater(100, sut.Count);
        }
コード例 #3
0
 public void Main()
 {
     var te = new TimerExample(1000, 2000, 2);
 }