How to run loop in background?

I am making the program in which i require to run two function at a time. One is time function which runs in background and others functions which will work in foreground?

Some one please Help me in this. I will be very Thankful.
You meet to use multithreading for this. Do a Google search for C++ threading tutorial, and you'll find lots of help on how to do this.
Last edited on
I'm not sure OP has convinced me that multithreading is the answer he needs.

The system clock runs regardless of what your program does.
If all you want to do is see how long something takes then just look at the clock every now and then.
Topic archived. No new replies allowed.