Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA2376 ; Mon, 01 Mar 93 10:56:39 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!dog.ee.lbl.gov!horse.ee.lbl.gov!mccanne From: mccanne@horse.ee.lbl.gov (Steven McCanne) Newsgroups: comp.os.386bsd.misc Subject: effecient, high-resolution microtime for 386 Followup-To: comp.os.386bsd.misc Date: 28 Feb 1993 04:05:29 GMT Organization: Lawrence Berkeley Laboratory, Berkeley CA Lines: 12 Distribution: world Message-ID: <29308@dog.ee.lbl.gov> NNTP-Posting-Host: 128.3.112.15 There is a high-resolution version of the microtime routine for 386BSD and BSD/386 available via anonymous ftp from ftp.ee.lbl.gov in the compressed tarchive microtime-i386.tar.Z. It works by reading the counter value out of the PC's timer register. With this kernel modification, gettimeofday will return values with resolution to one microsecond (as opposed to the current 10ms resolution). Also, this version of microtime runs twice as fast as the old one. Steve