How can I create a stopwatch?

Hello, I would like to create a stopwatch and display it on the screen, is there a way to do it?

You can take an idea from here, the only thing missing is how to stop the time and how to reset it

And maybe here

If you dont know how to make these let me know