kern_timestamp(2)kern_timestamp(2)NAMEkern_timestamp - return (machine-dependent) timestamp
SYNOPSIS
#include <sys/time_stamp.h>
kern_return_t kern_timestamp(struct tsval *tsp)
ARGUMENTS
tsp pointer to a struct tsval to receive the timestamp.
DESCRIPTIONkern_timestamp() obtains a current low-overhead timestamp from the
kernel.
DIAGNOSTICS
KERN_SUCCESS The timestamp has been returned.
KERN_INVALID_ADDRESS tsp doesn't point to valid user memory.
BUGS
Availability limited. Timestamp format is machine-dependent; the value
of the symbol TS_FORMAT must be saved for convert_ts_to_tv(). Multimax
timestamps are subject to rollover on an hourly basis (2^32 usec).
Timestamps on most other systems have a granularity of 10ms.
NeXT Computer, Inc. March 24, 1989 kern_timestamp(2)