Press the button once it turns green. Then check your reaction time.
This may not be the most exact due to mouse input delay.