private void timeDelay(int iInterval)
{
DateTime now = DateTime.Now;
while (now.AddMilliseconds(iInterval) > DateTime.Now)
{
}
return;
}
转载于:https://www.cnblogs.com/zcy_soft/archive/2010/09/23/1833368.html