Run real-time + keypress

First of my problems is to make my program run real-time and with pauses. Ive created a function that takes care of the pause, but cant think of the real-time factor. The task: run in real time, with each turn lasting 2 seconds, and a one second pause between each announement.
The bolded - does it mean, that i have to limit a functions executinon time? That seems odd, what if the function didnt do everything it had to do?
And another thing: Allow the user to hit the 'k' key to initiate function blah().
As i understood, if the user preses k, i have to launch a function and continue the turn. Should i make the user be able to press k in the pause time? And how?

void TimePause(int MiliS)
	int Time=clock();
Topic archived. No new replies allowed.