kernel - Add additional clock_gettime() modes
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 07:44:54 +0000 (00:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 07:44:54 +0000 (00:44 -0700)
commit91810a6f0686477493e9915e98cfc5adcbe91363
tree1cd712030f037c76e061fe18153971ba6802a439
parent179efaf0fe6401764c0902b87d718210274310b8
kernel - Add additional clock_gettime() modes

* Add the following:
CLOCK_UPTIME (same as MONOTONIC)
CLOCK_UPTIME_PRECISE (same as MONOTONIC)
CLOCK_UPTIME_FAST (faster, less precise)
CLOCK_REALTIME_PRECISE (same as REALTIME)
CLOCK_REALTIME_FAST (faster, less precise)
CLOCK_MONOTONIC_PRECISE (same as MONOTONIC)
CLOCK_MONOTONIC_FAST (faster, less precise)
CLOCK_SECOND (just returns 'time_second')

Taken-from: FreeBSD
include/time.h
sys/kern/kern_time.c
sys/sys/time.h