I have this function that waits for 1sec.. and it works good!! But..
I would like a function that counted MS (not microsoft,hehe)
MicroSeconds.. So that i could wait for 200ms instead of a1 Sec...

My function that waits for 1 sec uses date to count a second, is there another function out there which i can use to count from 1 -1000mS ?? I really need it as "DoEvents" doesnt fit my needs !!

Code i have is:
VB Code:
  1. 'Count 1 second
  2. Function Count1()
  3. On Error Resume Next
  4. Dim EndTime1 As Date
  5. EndTime1 = DateAdd("s", 1, Now)
  6. Do Until Now > EndTime1
  7. DoEvents
  8. Loop
  9. End Function

But please psot any small funtion that can wait/count X.. mS !!
Thanks in advance !