- 博客(1)
- 资源 (1)
- 收藏
- 关注
转载 实现c#每隔一段时间执行代码
<br />方法一:调用线程执行方法,在方法中实现死循环,每个循环Sleep设定时间; 方法二:使用System.Timers.Timer类; 方法三:使用System.Threading.Timer; 01 using System; 02 using System.Collections; 03 using System.Threading; 04 05 public class Test 06 { 07 08 public static void Main() 09 { 10 Test obj = n
2011-04-08 15:38:00 1068
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人