From owner-freebsd-hackers Sun Aug 18 0:11:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A788D37B400 for ; Sun, 18 Aug 2002 00:11:47 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D7343E4A for ; Sun, 18 Aug 2002 00:11:46 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g7I78XRo076158; Sun, 18 Aug 2002 09:08:34 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Sean Hamilton" Cc: hackers@FreeBSD.ORG Subject: Re: microuptime() and nanouptime() library? In-Reply-To: Your message of "Fri, 16 Aug 2002 19:14:24 PDT." <000701c24593$ceb71810$8eacb440@slugabed.org> Date: Sun, 18 Aug 2002 09:08:33 +0200 Message-ID: <76157.1029654513@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <000701c24593$ceb71810$8eacb440@slugabed.org>, "Sean Hamilton" write s: >Greetings, > >I just tried to use nanouptime, then microuptime, but was disappointed to >find that a quick grep of /usr/lib revealed no libraries containing these >symbols. > >Are they only available to the kernel. If so, how can I get a reasonable >timer figure from user space? There is no problem in making them available to userland, only the question of which .h file to put them in and how to avoid breaking some standard or other doing so. -- 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message