From owner-freebsd-hackers Sun Dec 3 16:19:16 2000 From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 3 16:19:14 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from molly.straylight.com (molly.straylight.com [209.68.199.242]) by hub.freebsd.org (Postfix) with ESMTP id 263D737B400 for ; Sun, 3 Dec 2000 16:19:14 -0800 (PST) Received: from dickie (case.straylight.com [209.68.199.244]) by molly.straylight.com (8.11.0/8.10.0) with SMTP id eB40J8q11723 for ; Sun, 3 Dec 2000 16:19:08 -0800 From: "Jonathan Graehl" To: Subject: most efficient/precise monotonic clock for I686_CPU? Date: Sun, 3 Dec 2000 16:23:46 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What is the most efficient way to get a relatively precise (say, at least millisecond) time value that is guaranteed to inrease monotonically (even if, say, xntpd adjust the system clock), either portable, or FreeBSD-specific? Is there some user library for using the Pentium performance clock thingy? I have, of course, looked at gettimeofday(2). Is this what I should be using? Does it involve a system call? -Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message