C#中倒计时
static void Main(string[] args)
{
DateTime dt = DateTime.Now;
while (true)
{
DateTime dt2 = DateTime.Now;
TimeSpan ts = dt2 - dt;
if (ts.Seconds <= 60)
{
Console.Clear();
Console.Write(60 - ts.Seconds);
Thread.Sleep(100);
}
else
{
break;
}
}
}