Date: Tue, 22 Jan 2008 15:32:44 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Daniel Eischen <deischen@freebsd.org> Cc: freebsd-hackers@freebsd.org, Stefan Lambrev <stefan.lambrev@moneybookers.com> Subject: Re: gettimeofday() in hping Message-ID: <86prvu0w37.fsf@ds4.des.no> In-Reply-To: <Pine.GSO.4.64.0801220831360.4862@sea.ntplx.net> (Daniel Eischen's message of "Tue\, 22 Jan 2008 08\:34\:15 -0500 \(EST\)") References: <4795CC13.7080601@moneybookers.com> <868x2i3v8d.fsf@ds4.des.no> <864pd63v2h.fsf@ds4.des.no> <Pine.GSO.4.64.0801220831360.4862@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen <deischen@freebsd.org> writes: > 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... Please don't bring this up again. Search the archives instead. There are very good reasons why this was solved the way it was in FreeBSD. Executive summary: a) gettimeofday() *is* a system call in Linux. b) gettimeofday() is slow in FreeBSD because it is correct. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86prvu0w37.fsf>