Esempio n. 1
0
        public static void Main()
        {
            var timer = new T.Timer(10, 1000);
            timer.TimeChanged += new T.Timer.TimeChangedEventHandler(Timer_TimeChanged);

            Console.WriteLine("Timer started for 10 ticks at interval 1000 ms.");
            Thread workerThread = new Thread(timer.Run);
            workerThread.Start();

            Console.WriteLine("TEST");
        }
Esempio n. 2
0
        public static void Main()
        {
            var timer = new T.Timer(10, 1000);

            timer.TimeChanged += new T.Timer.TimeChangedEventHandler(Timer_TimeChanged);

            Console.WriteLine("Timer started for 10 ticks at interval 1000 ms.");
            Thread workerThread = new Thread(timer.Run);

            workerThread.Start();

            Console.WriteLine("TEST");
        }