gettimeofday() in hping
Stefan Lambrev
stefan.lambrev at moneybookers.com
Tue Jan 22 06:31:55 PST 2008
Greetings,
Dag-Erling Smørgrav wrote:
> 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
>
Thanks for your reply.
I tested all different combination. The performance change is almost
invisible (100-200KB/s),
and can't be compared with the performance boost that TSC gain over
ACPI-fast timecounter.
Unfortunately TSC doesn't play nice with power saving modes.
--
Best Wishes,
Stefan Lambrev
ICQ# 24134177
More information about the freebsd-hackers
mailing list