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 6 of 6

Thread: StopWatch class

  1. #1
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts

    StopWatch class

    Nothing super special here. I just added a StopWatch Class to my growing collection of javascript classes

    Basic operation
    This let's you time javascript processes with intuitive method names like start(), stop(), read(), and reset(). I used these basic methods to make a rough bandwidth test

    Advanced features
    You can also save individual results and have them reported back as a group or individually. You can also retrieve saved elapsed times individually. I made a demo for these features here and here

    I know this is useful in only a handful of applications, but I found it useful enough for just one that I thought I'd share it

    Let me know what you think, good or bad.
    Last edited by beetle; 03-12-2003 at 03:57 PM.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #2
    Saj
    Saj is offline
    Regular Coder
    Join Date
    Feb 2003
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I dunno why its doing this, but the bandwidth thing if funny I think. I have a cable connection and it came back saying my bandwidth was 6750 kb/s.

    Mind you, that was the first time i visited the page, so it didn't come from the cache.
    - Saj

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hm, that is odd. Not sure why.

    What browser you got?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #4
    Saj
    Saj is offline
    Regular Coder
    Join Date
    Feb 2003
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use IE6, but it also comes up in NS7
    - Saj

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    It says my cable connection is at 8100 kb/s -->IE6 and Mozilla 1.2.1
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, well, apparently the method I used to confirm the completion of the downloaded image isn't nearly consistent enough to be viable. However, I did just finish making another demo page for this class.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”


  •  

    Posting Permissions

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