From owner-freebsd-questions Tue May 15 7:11:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 17ACE37B423; Tue, 15 May 2001 07:11:10 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4FEAjp33657; Tue, 15 May 2001 16:10:45 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dave Leimbach Cc: tlambert2@mindspring.com, eischen@vigrid.com, dillon@earth.backplane.com, dleimbac@earthlink.net, freebsd-questions@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: Gettimeofday Again... In-Reply-To: Your message of "Tue, 15 May 2001 08:53:51 CDT." <200105151353.IAA27481@MPI-Softtech.Com> Date: Tue, 15 May 2001 16:10:45 +0200 Message-ID: <33655.989935845@critter> From: Poul-Henning Kamp Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200105151353.IAA27481@MPI-Softtech.Com>, Dave Leimbach writes: >Thanks for all of the great answers... > >For now if I want to see better performance of the timing code I can just >"sysctl -w kern.timecounter.hardware=TSC"?? You can try it, but depending on a lot of stuff it may not A) work nor B) be a good idea if it does. If you want a faster (but less exact!) gettimeofday, change the call to microtime() to getmicrotime() in the gettimeofday() in kern_time.c -- 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-questions" in the body of the message