看板 FB_hackers 關於我們 聯絡資訊
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-851401618-1201008855=:4862 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 22 Jan 2008, Dag-Erling Sm=C3=B8rgrav wrote: > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: >> Stefan Lambrev <stefan.lambrev@moneybookers.com> writes: >>> I tried clock_gettime() (using CLOCK_REALTIME for clock_id), but this >>> yield worse performance. >> Try CLOCK_MONOTONIC instead. > > I forgot - there are also the FreeBSD-specific CLOCK_REALTIME_FAST and > CLOCK_MONOTONIC_FAST if you can live with a little bit of jitter. Not to discount any of your suggestions, but isn't the better performance of gettimeofday() (and perhaps clock_gettime() also) in Linux because they have access to the time in userland and can implement it without a system call? I seem to recall this being mentioned before, I could be wrong... --=20 DE ---559023410-851401618-1201008855=:4862 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" ---559023410-851401618-1201008855=:4862--