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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top