代码如下:public static void ClearCountByTime() { System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(TimeEvent); // 设置引发时间的时间间隔 此处设置为1秒 aTimer.Interval = 1000; aTimer.Enabled = true; } private static void Tim