using System.Timers;
public static void Main (string[] args){
System.Timers.Timer t = new System.Timers.Timer(1000);
t.Elapsed += new ElapsedEventHandler(run);
t.Enabled = true;
}
public static void run(object source,System.Timers.ElapsedEventArgs e){
Console.WriteLine("OK");
}
全站熱搜
留言列表