Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 16:10:45 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Dave Leimbach <dleimbac@MPI-Softtech.Com>
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... 
Message-ID:  <33655.989935845@critter>
In-Reply-To: Your message of "Tue, 15 May 2001 08:53:51 CDT." <200105151353.IAA27481@MPI-Softtech.Com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33655.989935845>