In the code below, I am trying to calculate the download speed of an image, but the speed comes out as infinity. What am I doing wrong?
var imageAddr = \"/
Just don't round the duration.
var duration = (endTime - startTime) / 1000;