コード例 #1
0
ファイル: Program.cs プロジェクト: alex687/SoftUni-Homeworks
        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");
        }
コード例 #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");
        }