How can i make a program do this:

- check during 20 secs if an answer is correct
- if the answer is correct or not, do something

I'm not sure how i can use a Timer control for this.