#region 每天定点启动的逻辑
DateTime dtTomorrow = DateTime.Now.AddDays(1);
DateTime date = dtTomorrow.Date;
date = date.AddHours(5);             
TimeSpan ts = date - DateTime.Now;          
Console.WriteLine("休眠 "+ts +" 启动");           
Thread.Sleep(ts);             
#endregion

 

 

5点启动