how to run commands

hi guys!
i needed a help in my code;
i must ask user for input, he must respond to it within 7 seconds.
if not, it should display, "you take a long time to type the value";
is there any way to do this?

Ex:
what is your name?
input:
//after 7 seconds without input
You take a long time to reply, do it now
input:


any suggets?
Topic archived. No new replies allowed.