I've been trying for the last 2 days to figure this one out with no luck.. so here goes..
As you can see in my code pasting below, i have a file thats downloaded in the button1_click event, i count the time between download start and finish, all this works fine.. now im wanting to show the download rate, and for the life of me, i cannot figure out how i can do this.. you'd think there would be some method or something but there isnt, the only way i can figure out the rate is on the timer1_tick event to count the bytes that was download since the last tick, and take that from it.. if that didnt make sense try this:
work out the amount downloaded in each given second, and every second add it to the previous second and take the median of the two as the average, and use the average amount downloaded per second x the number of seconds,
and from that you have an average download speed over the entire download that gets more accurate every second till its finished
I really hope someone can help!
Thanks for all your help P2P Wrox! (and its users)