How to create a stopwatch

Hey everyone. I am making a timeclock for my website and basically just want to create a stopwatch so it shows how long the employee has been clocked in for. I’m trying to keep it all on the front end, any ideas? thank you!

I built something similar for my audio recorder. You just need to make a loop with a timeout function.

how would i do that?