Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

kern_timestamp(2)  —  UNIX Programmer’s Manual

NAME

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. 

NeXT Computer, Inc.  —  March 24, 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026