I have a while loop that displays the the current time in two different formats, then clears the screen, adds a second and then redisplays the time again.
I would like for this loop to continue until the user hits a key, and then it goes into a separate loop that asks for user input.  If I use cin it pauses the entire loop waiting for the user input.  Is there a way to avoid pausing the loop to get user input?
 
     
    