cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress function trigger time

From: Rob Ward <rob_at_rob-ward.co.uk>
Date: Thu, 1 Dec 2011 09:36:02 +0000

On 30 November 2011 23:04, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 30 Nov 2011, Rob Ward wrote:
>
> I would have thought that a time counter is an obvious solution however
>> maybe using the curl time isn't? It may very well be suitable to add it
>> directly into the Progress example, this would then also show how to use
>> the transaction timing as well. If that is OK and what's desired I can make
>> a patch that adds it.
>>
>
> No, you're right. Using the curl time isn't as obvious. I think it sounds
> like a good idea!
>
>
> --
>
> / daniel.haxx.se
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

First pass on the patch that add this to the progress example attached for
review. Let me know about any changes that are desired. I've tested this on
a large file from my server(I slowed connection to make it easier and made
the limit for amount to download higher for the test).

Cheers,

Rob

-- 
------------------------------
Rob Ward
www.rob-ward.co.uk


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-12-01