hello,
i want to know how we can run a loop for specified time and then after the time ends it show us the result.
e.g = we have two variables "a=0" and "b=0" and i want to run program for 5 minutes and when someone press 1 it increments in "a" and when someone press 2 it increments in "b" and then after 5 minutes the loop ends and it print out us value of "a" and "b". this way we will know how many times 1 is pressed and how may time 2 is pressed.
thanks.