gettimeofday() in hping

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jan 22 06:39:21 PST 2008


On Tue, Jan 22, 2008 at 03:34:55PM +0100, Dag-Erling Sm?rgrav wrote:
> More modern machines have an HPET timer which is supposedly faster than
> ACPI yet more reliable than TSC.

For NetBSD on AMD64 on a 1.2GHz Core2:
ACPI ~2400 cycles
HPET ~1500 cycles
TSC ~800 cycles
clockinterrupt ~600 cycles

Those are from memory, give or take 10%. This is for the gettimeofday system call.

Joerg


More information about the freebsd-hackers mailing list