Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Creating a ‘delay’ routine.

Posted on 1997-10-31
1
Medium Priority
?
778 Views
Last Modified: 2008-02-26
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?
0
Comment
Question by:chele
1 Comment
 
LVL 4

Accepted Solution

by:
md041797 earned 400 total points
ID: 1172337
int delay = random (MAX_DELAY_SECONDS);  // you define it.
sleep (delay);



0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question