Date: Tue, 22 Jan 2008 13:26:30 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Stefan Lambrev <stefan.lambrev@moneybookers.com> Cc: freebsd-hackers@FreeBSD.org Subject: Re: gettimeofday() in hping Message-ID: <864pd63v2h.fsf@ds4.des.no> In-Reply-To: <868x2i3v8d.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Tue\, 22 Jan 2008 13\:22\:58 %2B0100") References: <4795CC13.7080601@moneybookers.com> <868x2i3v8d.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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?864pd63v2h.fsf>