wait one second

  • Thread starter Thread starter carmen
  • Start date Start date
C

carmen

In my application I need to wait one second and then continue the execution.
Is there any function to do this?
thank you
 
You could perform a Sleep;

System.Threading.Thread.Sleep(1000 /* Milliseconds */ );
 
carmen said:
In my application I need to wait one second and then continue the execution.
Is there any function to do this?

Thread.Sleep(1000) - however, that will only make the current thread
pause, not any other threads which may be running. Also, if you make
that call within the UI thread, the UI will lock up during that second.
 
Back
Top