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.
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.