看板 C_Sharp 關於我們 聯絡資訊
請問c#是否有可以讓程式sleep()的method static void Main(string[] args) { for (int i = 0; i < 10; i++) { Sleep(30000);//error System.Console.WriteLine("*"); } } thx -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.167.31
liunate:Thread不是? 10/05 17:09
hala001:Thread.Sleep(30000); 10/06 01:37
mty:開頭要加 using System.thread 吧 10/06 23:11