From owner-freebsd-questions@FreeBSD.ORG Tue Apr 13 08:14:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B914916A4CE for ; Tue, 13 Apr 2004 08:14:30 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CCD843D53 for ; Tue, 13 Apr 2004 08:14:30 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i3DFETHb057146; Tue, 13 Apr 2004 10:14:29 -0500 (CDT) (envelope-from dan) Date: Tue, 13 Apr 2004 10:14:28 -0500 From: Dan Nelson To: "Richard P. Williamson" Message-ID: <20040413151428.GG19655@dan.emsphone.com> References: <6.1.0.6.2.20040413152416.025514d8@cygnus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.1.0.6.2.20040413152416.025514d8@cygnus> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: timestamp in 4.8? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 15:14:30 -0000 In the last episode (Apr 13), Richard P. Williamson said: > Is there a reasonable timestamp (that uses a struct timeval > to return data by preference) in 4.8R? > > TSTMP (option KERN_TIMESTAMP) writes the rdtsc clock > value to debug.timestamps in sysctl-space. That does > not suit my purposes (need to timestamp the creation > of objects which are passed about). Why not use gettimeofday()? If you need more precision than microseconds, you probably can bump up HZ and use clock_gettime(). -- Dan Nelson dnelson@allantgroup.com