Javascript chronometer/stopwatch
I needed a javascript chronometer/stopwatch to be inserted in a project, and I didn't find anything on the web that fit my idea, so I created one almost from scratch, with all functions a chronometer should have, such as milliseconds measurement, start, stop, lap time and so on (well... that's all).
Let's see the javascript
-
"JavaScript""0""0"":""showtimer()""00:00""""showtimer()""0""0""00""0"":"".""0""0""00""0"":"".""00:00"""//-->
-
and the form for events controlling
It's a good javascript example, including functions and "onclick" event handler.
If you need some extra explication, just leave a comment
15 Responses to “Javascript chronometer/stopwatch”
Leave a Reply
Trackbacks
-
Cinemática « Doutor Cuca on
August 30th, 2008 2:07 am
[...] na superfÃcie da lua. Para medir o tempo de queda dos corpos utilize um cronômetro (use este cronômetro virtual se nao possuir um real). Estime a altura que os objetos foram lançados sabendo que o astronauta [...]
Posts
- Rick Triqui: my first PlayCrafter game
- Prototype of a Flash game like Meeblings
- Games for the game developers!
- The art of debugging
- How to embed a text file in Flash
- Create a Flash game in minutes with PlayCrafter
- Upgrade your Flash CS4 to 10.0.2
- Play Mazeroll, my latest Box2D game
- Triqui MochiAds Arcade plugin for WordPress Released!!
- The MochiAds funnel
- Flash game creation tutorial - part 1
- Create a Lightbox effect only with CSS - no javascript needed
- Flash game creation tutorial - part 2
- Make a Flash game like Flash Element Tower Defense - Part 2
- Flash game creation tutorial - part 3
- Create a flash draw game like Line Rider or others - part 1
- Create a Flash Racing Game Tutorial
- Make a Flash game like Flash Element Tower Defense - Part 1
- Create a flash artillery game - step 1
- Create a flash draw game like Line Rider or others - part 5
- Flash game creation tutorial – part 5.2




(4.9 out of 5) - Flash game creation tutorial – part 3




(4.86 out of 5) - Creation of a platform game with Flash – step 2




(4.84 out of 5) - Create a survival horror game in Flash tutorial – part 1




(4.82 out of 5) - Create a flash artillery game – step 1




(4.82 out of 5) - Create a Flash Racing Game Tutorial




(4.8 out of 5) - Create a flash artillery game – step 2




(4.75 out of 5) - New tile based platform engine – part 6 – ladders




(4.74 out of 5) - Flash game creation tutorial – part 2




(4.73 out of 5) - The experiment – one year later




(4.7 out of 5)


Good javascript code.
I used it in order to create another similar chronometer.
Thanks!
This is good. One thing about “stop” button. It stopped when pressed. But the timer reset back to zero when pressed on “start”. This is similiar to “reset”. Can you keep the time stay the same and resume from that time when click on start button?
To Ralph. If you want to mark the times insted of pressing “stop” press the “start/lap” button then the seconds are put in the box next to the timer.
How hide that controls?
Salve.
Agradeço sua boa vontade em compartilhar seu trabalho.
Me ajudou muito.
Abraços do Brasil.
Reinaldo S Guth – reiwolf
I JUST NEED A SMALL STOP WATCH THAT TICKS VERY FAST MAYBE BLACK WITH THE DIGITAL NUMBERS BEING RED. ITS FOR MY SPACE AND CANNOT FIND AONE NO WHERE. IT WOULD BE PERFECT IF I CAN GET ONE THAT STARTS WHEN SOMEONE ENTERS MY SPACE AND KEEPS TICKING FAST UNTIL THEY LEAVE. IM NOT SURE IF YOU CAN HELP ME BUT SAW THIS PAGE AND THOUGHT I WOULD TRY. THANK YOU , FALLON
I love it! Though, as NZers are always in a hurry, I think m/seconds make timers look groovy!
I’ve been using this to do my Kegal exercises. great. thanks.
One suggestion (same as Ralph’s) when you hit stop, then start again, the time shouldn’t go back to 0. I like to pause the chronometer then resume it again leaving off at the same time.
Thanks a lot for everything you do emanuel. I have one demand please in relation with that code: could you make some kind of a timer, for exemple after 20 secondes something will happen with php ?! :s I wish I was clear :) ( English is not my language, So SORRY for mistakes ! )
Hey …
Your script is perfect… but could I ask you somehting ?
Do you think it is possible to be done that it works even after page refreshes for instance ?
Thanks a lot,
Andreea
I would like to thank you for this wonderful chronometer.
I have used several times to preview the length of my presentations for class. Thanks a lot!
Emmanuel
Hi,
Should you tell me how to put up the thousandth or more precises decimal/.
Thank’s
Hi,
where I can find the code of Javascript chronometer/stopwatch ?
The plan text is empty in your page…
Thank you. Marcelo
Very useful, I’m timing different IT processes from Europe to check their performance agains the US and Singapore… thank you, great tool! :)