*BSD News Article 74020


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!bcm.tmc.edu!cs.utexas.edu!uwm.edu!news.moneng.mei.com!bloom-beacon.mit.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.os.linux.networking,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc
Subject: Re: TCP latency
Date: 17 Jul 1996 13:18:44 GMT
Organization: Private BSD site, Dresden
Lines: 16
Message-ID: <4sip7k$3tl@uriah.heep.sax.de>
References: <4paedl$4bm@engnews2.eng.sun.com>
  <4s8cuq$ljd@bertrand.ccs.carleton.ca> <31E7C0DD.41C67EA6@dyson.iquest.net>
  <4s8tcn$jsh@fido.asd.sgi.com> <31E80ACA.167EB0E7@dyson.iquest.net>
  <4sadde$qsv@linux.cs.helsinki.fi> <31E9E3A7.41C67EA6@dyson.iquest.net>
  <4sefde$f0l@fido.asd.sgi.com> <s8hgr8nga9.fsf@sphinx.nuclecu.unam.mx>
  <4sgusn$4tr@verdi.nethelp.no>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45561 comp.unix.bsd.netbsd.misc:4097 comp.unix.bsd.freebsd.misc:23850

sthaug@nethelp.no (Steinar Haug) wrote:

> Having a fast gettimeofday() is actually useful in lots of ways. I never
> understood why gettimeofday() couldn't simply be reading a timeval which
> was mapped into the process virtual address space. No muss, no fuss.

You have to read the i8253 counter residual value on an i[34]86 in
order to get a resolution better than the (fairly poor) clock rate.
That's nothing that should be done in a library.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)