klangfor@falcon.afit.af.mil (Kenneth W. Langford) (08/03/90)
Hello everyone, This is my first time to post to the net. I have been reading the news for over a year now and I have not needed to post because you seemed to be talking about the subject I needed. I think this subject has come up before but I didn't copy the information down. 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
thad@cup.portal.com (Thad P Floryan) (08/04/90)
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 ]