Need gettimeofday() function.
Thad P Floryan
thad at cup.portal.com
Sat Aug 4 16:01:37 AEST 1990
klangfor at falcon.afit.af.mil(Kenneth W. Langford) in <1668 at 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 at cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]
More information about the Comp.unix.questions
mailing list