C#
밀리세컨 시간동안 대기
탑~!
2010. 12. 17. 16:01
private void Delay(int mSecond)
{
int _startsecond;
_startsecond = Environment.TickCount;
while (true)
{
if (Environment.TickCount - _startsecond >= mSecond)
{
return;
}
//Application.DoEvents(); // <-- 이 부분은 사용 용도에 따라 쓰세요
}
}
728x90
반응형