beetle
03-05-2003, 09:34 PM
Nothing super special here. I just added a StopWatch Class to my growing collection of javascript classes (http://www.peterbailey.net/site/dev/jsclasses/)
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 (http://www.peterbailey.net/test/bandwidth.htm)
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 (http://www.peterbailey.net/test/stopwatch.htm) and here (http://www.peterbailey.net/test/stopwatch2.htm)
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 :D
Let me know what you think, good or bad.
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 (http://www.peterbailey.net/test/bandwidth.htm)
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 (http://www.peterbailey.net/test/stopwatch.htm) and here (http://www.peterbailey.net/test/stopwatch2.htm)
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 :D
Let me know what you think, good or bad.