Question on Delays

Hi there,
         Which function in MFC programming can I use to generate delays? I wanted to have a delay of about a second or so between the execution of 2 instructions. How can I also generate a microseconds delay?

Any help offered is very much appreciated!
justinngAsked:
Who is Participating?
 
BridgeConnect With a Mentor Commented:
sleep
0
 
fstabCommented:
Add a timer to your program and use the WM_TIMER handler. Use the ClassWizard to add the handler. And use SetTimer/KillTimer to set the timer duration.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.