gettimeofday() in hping
Dag-Erling Smørgrav
des at des.no
Tue Jan 22 04:26:39 PST 2008
Dag-Erling Smørgrav <des at des.no> writes:
> Stefan Lambrev <stefan.lambrev at 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
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-hackers
mailing list