Show downloading speed or other types of download progress

Hi all and jules,

I am implementing a downloading app which downloads update installers from our server, in the similar way as jules does in IntroJucer’s updating juce modules.

Our files are relatively bigger than pure text files (about 50MB or so), so I want to show some statistics in the progress bar window to let the user know it is DOING something, not hanging there. IntroJucer uses (the number of files completed / the number of all files) way to show in progress bar. But our files are small in number but large in their file sizes, which makes it like hanging there.

The only thing I can think of is to show the downloading speed, like 600 KB/s etc. But I cannot figure out a way to get (or estimate) the downloading speed.

Any suggestion is welcomed.