C#延时函数的使用

在线程中若是须要延时,尽可能不要使用Sleep()函数,这样会致使时间片切到别的线程中。函数 使用以下函数: 线程 //Delay function public static void Delay(int milliSecond) { int start = Environment.TickCount; while (Math.Abs(Enviro
相关文章
相关标签/搜索