| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
RE: Determine download speed
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 13 Jun 2010 22:41:57 +0200 (CEST)
On Sun, 13 Jun 2010, Patrick K. wrote:
> I don't need a very high precision but I need a value that looks alright.
... and now you're complicating things without telling us which way you
> I should mention that I asked for the average speed before the download was
curl_easy_getinfo() is documented and I quote from the man page:
"Use this function AFTER a performed transfer if you want to get transfer-
So no, you can't use this to get info updated while the transfer is in
> But maybe I'm just doing something else wrong. Lets assume this is how my
Not at all. Again, this is documented. size * nmemb is the total size of data
> So inside the function I'm checking how much time passed.
That you can do, but you need to add up the total amount of data to make it
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-06-13 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info