timer

can anyone tell me how to add a timer to a programme.
for example, suppose you make a program where the user has to answer a question in
a certain time limit
to do this in a console, you need two threads.
You can also just grab the time when you asked the question and the time when the question was answered, calculate the difference, and let the user know if they answered within the allotted time.
Topic archived. No new replies allowed.