Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stopwatch error at 7 seconds

    Hi all ... I'm quite new to javascript and am adopting a script I found at http://www.timpelen.com/extra/sideba.../stopwatch.htm to calculate the time between mouseclicks (it will be for a simple game of sorts where the viewer will see how accurately they can click the mouse at same time intervals over and over again and will show a bar indicating how perfectly in rhythm they are in).

    I got most of my script working but noticed on the ORIGINAL script at the link I provided (unable to find the original coder) that at 7 seconds when you click the "split time" button, you get a -1.52 displaying. Why 7 seconds? Is there something about how he's rounding the raw numbers or is it in the formattime function?

    I hope someone can help. I am soooo close to having my little game working, if I could only figure out what's happening at the 7th second!

    Thanks for dealing w/ a newbie :-)

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,925
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    See:- *** WARNING: Questions posted here will be deleted! ***.

    You will not get any reply in this forum which is intended to be used only to post a completed (working) script for showcasing/benefit of others.

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My bad ... sorry about that :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •