cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress function trigger time

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Nov 2011 21:33:52 +0100 (CET)

On Tue, 29 Nov 2011, Saidus Bounderra wrote:

> I'm wondering if is there any way (or option to put ) to control progress
> function triggering i.e : libcurl will call a progress function for exemple
> each 5s instead of a default value of 1s

How about just adding a timestamp of your own within the function that just
returns immediately if less than 5 seconds have passed since the previous
invoke?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-29