Fratello,
You don't wait for the button to be released.
If it's pressed you start the timer, then immediately GOSUB END_sett which stops the timer and stores the number of seconds that have passed.
But no seconds have passed.
If you put a scope on the LED pin, you'll see that it's not "always on". It pulses low very breifly every 1 second.
Bookmarks