Creating a ‘delay’ routine.

I am designing a test system user interface for Win 95 using Microsoft Visual C++ 5.0.  One system requirement is a routine that delays a variable amount of time then returns to the calling test routine.  The test system will be waiting for this routine to return before proceeding.  Is there a MFC library class that I can use to implement this routine?  What are the other possible implementations?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

md041797Connect With a Mentor Commented:
int delay = random (MAX_DELAY_SECONDS);  // you define it.
sleep (delay);

All Courses

From novice to tech pro — start learning today.