23
7월
[C#] Delay Function
1 2 3 4 5 6 7 8 9 10 11 12 13 |
public void DelayFunc(double mSecond) { int _startsecond; _startsecond = Environment.TickCount; while (true) { if (Environment.TickCount - _startsecond >= mSecond) { return; } Application.DoEvents(); // <-- 이 부분은 사용 용도에 따라 쓰세요 } } |