1

i upload files to HTTP server. I know I can get upload progres with method

- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite

but is there any way to get upload speed?

AYMADA
  • 889
  • 3
  • 17
  • 37

1 Answers1

3

From a question I got this answer though it was for download speed but You can also calculate upload speed form this. Measure the difference in bytes uploaded and the difference in time between calls to the delegate, then you can calculate the ongoing speed in bytes per second (or other time unit).

There is another answer that can help you. One more reference (added from comment).

Hope this helps .. :)

Community
  • 1
  • 1
Rashad
  • 11,057
  • 4
  • 45
  • 73
  • One more reference http://stackoverflow.com/questions/2779600/how-to-estimate-download-time-remaining-accurately – vokilam Mar 03 '14 at 09:38