How to create a stopwatch using javascript

How to create a stopwatch using javascript