From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 02:19:09 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 E7B0916A4CE for ; Wed, 14 Apr 2004 02:19:09 -0700 (PDT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70F3C43D53 for ; Wed, 14 Apr 2004 02:19:08 -0700 (PDT) (envelope-from richard.williamson@u4eatech.com) Received: (from filter@localhost) by mail.u4eatech.com (8.11.6/8.11.6) id i3E9Imo17005; Wed, 14 Apr 2004 10:18:48 +0100 X-Authentication-Warning: mail.u4eatech.com: filter set sender to richard.williamson@u4eatech.com using -f Received: from apus.u4eatech.com (unknown [172.30.20.100]) by mail.u4eatech.com (Postfix) with ESMTP id 8E7681577D4; Wed, 14 Apr 2004 10:18:45 +0100 (BST) Message-Id: <6.1.0.6.2.20040414102257.02550840@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Wed, 14 Apr 2004 10:23:30 +0100 To: Dan Nelson From: "Richard P. Williamson" In-Reply-To: <20040413151428.GG19655@dan.emsphone.com> References: <6.1.0.6.2.20040413152416.025514d8@cygnus> <20040413151428.GG19655@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-6.1 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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: Wed, 14 Apr 2004 09:19:10 -0000 At 16:14 13/04/2004, Dan Nelson wrote: >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(). Ok, clock_gettime works for me. Thanks! rip