cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: "is at send pipe head!" ??

From: Paul Harris <harris.pc_at_gmail.com>
Date: Fri, 20 Aug 2010 07:32:40 +0800

On 20 August 2010 00:19, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 19 Aug 2010, Paul Harris wrote:
>
> Could you satisfy my curiousity: What is the reason for using
>> milliseconds, when everything else seems to use microseconds?
>>
>
> Everything else, really? In my recollection POSIX has functions with
> nanoseconds (like nanosleep()), microseconds (like select()), milliseconds
> (like poll()) and seconds (like sleep()) for various timeouts.
>
>
I guess I was thinking of select() in particular

> In libcurl we use milliseconds quite consistently I believe for sub second
> resolution in the API.
>
> I picked milliseconds back in the days since I think it makes sense to
> provide sub second resolution. I don't think any application so far has
> shown a need for sub millisecond resolution.
>
>
i think its a good resolution level too

thanks,
Paul

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-20