How would I register the duration of touch on a soft pot meter?

I'm having a soft pot meter here and I would like to register the duration of the touch event. I'm having a different variable, which keeps going from 1024 to 0 , which regularly takes 60 seconds, but for every second you touch the soft pot meter the count adds 50 up to 1024. Like returning the clock backward.

How would I register/code this?

I don't mind if it requires either to move (preferred) your finger or just touch it anywhere and keep it touched.


I'd modify the down count code for different increment/decrement values, depending on whether the pot is actually touched.