示例#1
0
        static void Main(string[] args)
        {
            var timerService = new TimerService();
            var sw           = new Stopwatch();

            sw.Start();
            RunTimer(timerService);
            while (isRunning)
            {
                timerService.UpdateTick(sw.ElapsedMilliseconds);
                Task.Delay(10);
            }
            Console.WriteLine("End");
        }