[zeromq-dev] zmq::poll timeout returns immediately on MacOS/X 10.5

Steven McCoy steven.mccoy at miru.hk
Fri Jun 11 15:56:39 CEST 2010


On 11 June 2010 20:15, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Marcin Gozdalik wrote:
>
> > Avg. us/call Elapsed Name
> > 0.064833 0.648334 clock_gettime(2/CLOCK_REALTIME)
> > 0.009635 0.096351 clock_gettime(2/CLOCK_REALTIME_COARSE)
>
> That's a pretty good performance! I wouldn't hesitate to use it in
> zmq_poll. The impact on non-Linux systems is still unknown though.
>
>
So if that's equivalent to the vsyscall then gettimeofday() should be
similar on MRG with the VDSO, and should be even faster with whatever libc
supports RDTSCP on the Nehalem.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100611/22fb6f6b/attachment.html>


More information about the zeromq-dev mailing list