Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!fernwood!portal!cup.portal.com!thad From: thad@cup.portal.com (Thad P Floryan) Newsgroups: comp.unix.questions Subject: Re: Need gettimeofday() function. Message-ID: <32433@cup.portal.com> Date: 4 Aug 90 06:01:37 GMT References: <1668@blackbird.afit.af.mil> Organization: The Portal System (TM) Lines: 20 klangfor@falcon.afit.af.mil(Kenneth W. Langford) in <1668@blackbird.afit.af.mil > writes: ... I am converting a program from BSD to SYS_V and I need a gettimeofday() function equivalent that returns the time in milla-seconds for the SYS_V machine. Thanks in advance. Ken Langford I have posted ``one SystemV emulation of BSD's "gettimeofday(2)"'' to the alt.sources newsgroup. My routine works fine with the entire 4.3BSD Tahoe networking software suite on a 3B1, but note the caveat (in the posting) re: 60Hz or 100Hz resolution on YOUR SysV box. Since the presumption is you're on a pre-SVR4 system (which has gettimeoday()), the best you will see is either 1/60 or 1/100 second resolution on SVR2/SVR3. Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]