C#延時函數的使用

在線程中若是須要延時,儘可能不要使用Sleep()函數,這樣會致使時間片切到別的線程中。函數 使用以下函數: 線程 //Delay function public static void Delay(int milliSecond) { int start = Environment.TickCount; while (Math.Abs(Enviro
相關文章
相關標籤/搜索