gettimeofday - millisecond accuracy
Fri Dec 19 04:01:00 GMT 2008
with my test of gettimeofday in cygwin it appears to be counting in
rather than microseconds.
so I had a look at where it is coded, /winsup/cygwin/times.cc
gettimeofday (struct timeval *tv, void *tzvp)
struct timezone *tz = (struct timezone *) tzvp;
static bool tzflag;
LONGLONG now = gtod.usecs ();
I notice there is
hires_ms NO_COPY gtod;
however lower down there is appears to be a hires_us
So I am wondering what the story is behind this ?
I will look at testing some changes here and testing, just need to do a
successful build from source
of as is first.....
I am looking for microsecond resolution, and see that hires_us is using
so thats looking good I think?
I have code that does bitbanging to the parallel port, it works
perfectly under linux, and would like
to see it work in cygwin also.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin