110,534
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Threading;
class App {
public static void Main() {
Console.WriteLine("每2秒更新");
Timer timer = new Timer(new TimerCallback(CheckStatus), null, 0, 2000);
Console.ReadLine();
timer.Dispose();
}
static void CheckStatus(Object state) {
Console.WriteLine("更新。。。。。。。。.");
}
}