Display a counted amount of time

For part of my app I want to display an amount of time the user holds a button. I’m thinking I need to start a timer when the user presses the button and then stop the timer when they remove their finger, I’m just new and can’t find anywhere to do that.

Here a timer you can adapt the code adding a condition when key pressed

Hi, alternatively to Ulises suggestion you can also check the solution in this thread.