Yep, this should work just fine for you
VB Code:
  1. Dim tEnd As DateTime = Now
  2.         While Now < tEnd.AddMilliseconds(1000)
  3.             Trace.Write("Still less than 1 second" & vbCrLf)
  4.         End While
  5.         Trace.Write("OK, it's over" & vbCrLf)