Beispiel #1
0
        public static void Main()
        {
            AsyncTimer messageTimer = new AsyncTimer(printMessage, 100, 2000);
            messageTimer.Start();

            AsyncTimer beepTimer = new AsyncTimer(beep, 50, 2500);
            beepTimer.Start();
        }
        static void Main(string[] args)
        {
            AsyncTimer timer1 = new AsyncTimer(Work1, 1000, 10);

            timer1.Start();
            AsyncTimer timer2 = new AsyncTimer(Work2, 500, 20);

            timer2.Start();
        }
Beispiel #3
0
        static void Main()
        {
            AsyncTimer asyncTimer = new AsyncTimer(TestMethod, 2000, 20);

            asyncTimer.Start();
        }