Hi,i am a beginner and im trying to make my first project,and i have a problem

When the ball goes green, start the timer. When it stops, measure the time, like this: