cURL / Mailing Lists / curl-library / Single Mail


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

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

On 20 August 2010 00:19, Daniel Stenberg <> 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


List admin:
Received on 2010-08-20