I intend to make a simple minesweeper i am done with the most part but i am stuck at one place. I want to add a timer in it. The user will have 5 or 10 minutes to play. I used the function below for this purpose but it won't do the job as it wont allow me to do other tasks. The loop will go on and not allow the user to do anything till then.
I want to see both of them work side by side. Like the timer don't interfere in the working of the program
1 2 3 4 5 6 7 8 9 10
void timer(int timeleft)
cout<<"timeleft is :"<<timeleft;