Just click the green flag and a 10 second timer will start right away, then just click in the box, and then when your time stops it will all stop and you cannot click anymore and it will play some really short music and you can see how many clicks you did. Press the green flag to restart.
I got the inspiration from an online speed clicking game. I also saw a tutorial on a how to make a timer, and that's it all the other code is done by me!