Re: finding the transfer rate of a download
Re: finding the transfer rate of a download
- Subject: Re: finding the transfer rate of a download
- From: Matthew Delves <email@hidden>
- Date: Mon, 14 Jan 2008 16:29:11 +1100
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden