作者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
1F:推 liunate:Thread不是? 10/05 17:09
2F:推 hala001:Thread.Sleep(30000); 10/06 01:37
3F:推 mty:开头要加 using System.thread 吧 10/06 23:11