Measuring upload speed?
Hello,Could you suggest a good way to implement upload speed measurement in Java? How is this usually done in applications such as Firefox, Azureus?Message was edited by: SuperDario
# 2
Thanks, but I'm using SWT, not Swing. And what I need to do is continuously measure upload speed and show it to the user (e.g. 44 KB/s).
By the way, I'm not asking how to do this *in SWT*, I'm just looking for suggestion on how to measure the speed. Do I need a separate thread that will monitor sent bytes and measure current speed? Any suggestion is welcome.
# 3
What I meant was to have a look at the source of this stream and write your own as a FilterInputStream or FilterOutputStream derivation. You don't need a separate thread, just something that will compute time and space into bandwidth from the observed data count and current time.
ejpa at 2007-7-12 8:39:30 >
