Originally Posted by johnsmith153
Only thing is:
new Date().getTime() / 100;
I've tested and it works great on many occasions and on many different devices.
So much better than the image download scripts I keep seeing.
my units are KiloBytes per second, you might be looking for KiloBits per second, which is more common in ISP advertising.
i should also mention that you might consider is keeping track of the total time, subtracting delay and the dividing by 5. That math yields your average latency, another quality of service indicator.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4