Guest User

Untitled

a guest
Sep 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public static void Events(long msecs)
  2. {
  3. DateTime ticks = DateTime.Now.AddMilliseconds(msecs);
  4.  
  5. while (DateTime.Now < ticks)
  6. {
  7. Application.DoEvents();
  8. Thread.Sleep(20);
  9. }
  10. }
Add Comment
Please, Sign In to add comment