finding the transfer rate of a download

  • For an app that I'm creating, I am performing downloads using
    NSURLDownload. Though I'm having trouble figuring out how to determine
    the transfer rate for the download.

    Does anyone know of a solution to this problem?

    God bless,
    Matthew Delves
  • On Jan 12, 2008, at 12:18 AM, Matthew Delves wrote:

    > For an app that I'm creating, I am performing downloads using
    > NSURLDownload. Though I'm having trouble figuring out how to
    > determine the transfer rate for the download.
    >
    > Does anyone know of a solution to this problem?

    You can save the start time, track the progress.. some simple
    division, there you go.

    The URL Loading System conceptual doc tells you how to track the
    download progress...

    <http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/
    Tasks/UsingNSURLDownload.html#//apple_ref/doc/uid/20001839-165094
    >
  • On 12/01/2008, at 5:24 PM, Scott Anguish wrote:

    >
    > On Jan 12, 2008, at 12:18 AM, Matthew Delves wrote:
    >
    >> For an app that I'm creating, I am performing downloads using
    >> NSURLDownload. Though I'm having trouble figuring out how to
    >> determine the transfer rate for the download.
    >>
    >> Does anyone know of a solution to this problem?
    >
    > You can save the start time, track the progress.. some simple
    > division, there you go.
    >
    > The URL Loading System conceptual doc tells you how to track the
    > download progress...
    >

    Sorry for the late reply, I'm familiar with the doc though
    unfortunately it only covers calculating the percentage complete. I
    have it currently so that it covers the average speed over the entire
    download. Unfortunately, when I try to change it so that it will reset
    the timer after a couple of seconds, it gets to the stage whereby the
    method is called again before it has had time to complete. This is due
    to the method containing the calculations being a delegate method. I
    hope I have explained this well enough.

    Any help would be greatly appreciated.

    Thanks,
    Matthew Delves
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today