Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!spool.mu.edu!agate!dog.ee.lbl.gov!ace.ee.lbl.gov!leres From: leres@ace.ee.lbl.gov (Craig Leres) Newsgroups: comp.unix.internals Subject: Re: millisecond timer Message-ID: <14587@dog.ee.lbl.gov> Date: 21 Jun 91 23:25:12 GMT References: <14437@dog.ee.lbl.gov> Followup-To: comp.unix.internals Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 18 X-Local-Date: Fri, 21 Jun 91 16:25:12 PDT Chris Torek writes: > In article <1991Jun11.173751.25189@linus.mitre.org> jfjr@mbunix.mitre.org > (Freedman) writes: > > I have a Sun Sparcstation running SunOs 4.0.3. I need to > >be able to produce timestamps with 1 millisecond granularity. > > The SparcStation has a microsecond timer, and I thought SunOS brought > it out in gettimeofday(). Their scheduling resolution is still 10 ms, > though. SunOS 4.0's gettimeofday() (really uniqtime()) did not take advantage of the microsecond clock; I think the first release that did was 4.1. But unfortunately, only for the 4/60 and 4/330. (I remember hacking up a binary patch to make it work with a 4/65.) By 4.1.1, the code was fixed to check for any Sun4c as well as the two Sun4's which have it (the 4/330 and 4/470). Craig