simple question here:

I am working on a simple game, which the user need to press a button as long as sound is playing. Therefore i need to count for how long does the user press a button and compare it with the duration of the sound. The button does not fire an intent or do anything else.

thanks