From owner-freebsd-hackers Wed Jan 8 21:04:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA00717 for hackers-outgoing; Wed, 8 Jan 1997 21:04:36 -0800 (PST) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA00700 for ; Wed, 8 Jan 1997 21:04:33 -0800 (PST) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.4/8.8.4) id AAA06512; Thu, 9 Jan 1997 00:04:26 -0500 (EST) From: Charles Henrich Message-Id: <199701090504.AAA06512@crh.cl.msu.edu> Subject: Re: is time() valid in kernel? To: louie@TransSys.COM (Louis A. Mamakos) Date: Thu, 9 Jan 1997 00:04:25 -0500 (EST) Cc: freebsd-hackers@freebsd.org In-Reply-To: <199701090502.AAA08448@whizzo.transsys.com> from "Louis A. Mamakos" at "Jan 9, 97 00:02:15 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I think that you want to use microtime() to capture the current time > whilst timestamping events in the kernel. There's some code that I > submitted a while ago which timestamps messages queued to UDP sockets > based on a socket option; take a look at /sys/netinet/udp_usrreq.c > for the code. Cool, thanks much! -Crh Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich