作者wayneliao (pp)
看板C_Sharp
標題[問題] delay in c#
時間Wed Oct 5 15:56:15 2005
請問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