I want to create a timer/stop watch in javascript for the following use case:
On clicking the "Play" button, i start the stop watch and on clicking "pause" it's stopped. Then the diff gives me the elapsed time. From this, I should show the song progress time and update it. If the song is fully played, then, the timer should start from the beginning (i.e. 0 level) else, it should start from the state where it has stopped.
Please guide me how to do it in javascript. How to get the current time? (gettime??)
Thanks
Sneha