From owner-freebsd-current@FreeBSD.ORG Tue Apr 24 20:16:48 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A107416A404 for ; Tue, 24 Apr 2007 20:16:48 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 70C7813C484 for ; Tue, 24 Apr 2007 20:16:47 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.60.109]) by phk.freebsd.dk (Postfix) with ESMTP id 8887F17382; Tue, 24 Apr 2007 20:16:44 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l3OKGf8V004549; Tue, 24 Apr 2007 20:16:41 GMT (envelope-from phk@critter.freebsd.dk) To: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 24 Apr 2007 16:13:59 +0200." <86r6q9hnbs.fsf@dwp.des.no> Date: Tue, 24 Apr 2007 20:16:41 +0000 Message-ID: <4548.1177445801@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Tim Kientzle , David G Lawrence , "Jesper B. Rosenkilde" , current@freebsd.org Subject: Re: Suggestions on Avoiding syscall Overhead X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 20:16:48 -0000 In message <86r6q9hnbs.fsf@dwp.des.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= writes: >des@des.no (Dag-Erling Sm=F8rgrav) writes: >> gettimeofday(2) returns a value in microseconds, but this does not >> necessarily mean that it has microsecond precision. > >s/precision/resolution/ Actually: s/precision/& or resolution/ Can I recommend that you not try the timestamping functions first, get something simple like uname(2) working first, then contact me and I'll help you get timecounters involved. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.