📜  如何在c#代码示例中延迟执行

📅  最后修改于: 2022-03-11 14:49:24.080000             🧑  作者: Mango

代码示例1
int sleepTime = 1000; // in mills
Task.Delay(sleepTime).Wait();
// or
Thread.Sleep(sleepTime);