diff options
author | kib <kib@FreeBSD.org> | 2012-06-22 07:13:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-06-22 07:13:30 +0000 |
commit | 13a9f42818f6b89a72b3e40923be809b490400d8 (patch) | |
tree | 58a73d4c3dd528ab72afbea3d6243d4dd6c48c3e /lib/libc/sys/read.2 | |
parent | 7b36a081088572ce45af9b675b5992adc971506d (diff) | |
download | FreeBSD-src-13a9f42818f6b89a72b3e40923be809b490400d8.zip FreeBSD-src-13a9f42818f6b89a72b3e40923be809b490400d8.tar.gz |
Use struct vdso_timehands data to implement fast gettimeofday(2) and
clock_gettime(2) functions if supported. The speedup seen in
microbenchmarks is in range 4x-7x depending on the hardware.
Only amd64 and i386 architectures are supported. Libc uses rdtsc and
kernel data to calculate current time, if enabled by kernel.
Hopefully, this code is going to migrate into vdso in some future.
Discussed with: bde
Reviewed by: jhb
Tested by: flo
MFC after: 1 month
Diffstat (limited to 'lib/libc/sys/read.2')
0 files changed, 0 insertions, 0 deletions