public class Class1
    {
        static void Main()
        {
            AutoResetEvent autoEvent = new AutoResetEvent(false);
            StatusChecker statusChecker = new StatusChecker();
            
            TimerCallback timerDelegate =
                new TimerCallback(statusChecker.CheckStatus);            Console.WriteLine("{0} Creating timer.\n",DateTime.Now.ToString("HH:mm:ss"));
            statusChecker.statetime = DateTime.Now.ToString("HH:mm:ss");            TimerCallback callback = new TimerCallback(statusChecker.CheckCount);
            Timer timer = new Timer(callback, autoEvent, 1000, 30000);
            
            Timer stateTimer = new Timer(timerDelegate, autoEvent, 1000, 1000);            Console.ReadLine();
        }
哪个知道把这个线程能由用户控制停下,再由用户控制启动