using System.Threading; Thread t1 = new Thread(new ThreadStart(ThreadFun)); t1.Start(); private void ThreadFun() { while (true) { string hour = DateTime.Now.Hour.ToString(); string min = DateTime.Now.Minute.ToString(); string ss = DateTime.Now.Second.ToString(); if (hour == "0" && min == "0" && ss == "0") { Check_Info_Update(); Thread.Sleep(60000);//2分钟 } } }