up | Inhaltsverzeichniss | Kommentar

Manual page for kern_timestamp(2)

kern_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.

DESCRIPTION

kern_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.


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97