Most game dev libs have a 'Get Tick' or somesuch function which returns a millisecond counter. You can poll this to see how much time is passing. There are also 'Sleep' or 'Delay' functions which have your program sit and do nothing for a specified time. The two of these together can be used to have your program run as "normal time".
It's worth noting that this is harder to do with the console because a lot of the console input waits indefinitely for user input. One of the many reasons that the console is a poor choice for game development.
The exact code for this will vary depending on what libs you're using. You might want to try SDL, since it's pretty easy to pick up: