Re: gettimeofday() does not returns usec resolution

2002-01-25 Thread Lapo Luchini
Ralf Habacker wrote: > Lapo Luchini writes: > > > isn't the time slice about 10ms. ? > > Actually is between 15 and 16ms: > > try 2: 437703512 - 437719512 = 16000 > > try 3: 437719512 - 437734512 = 15000 > Thats my result on a toshiba Satelitte Pro 4300 Laptop with win2000 > try 1: -347828856

RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker
Lapo Luchini writes: > > > > I adapted the code to find exactly the minimum time slice, and not "how well > > > 1ms of retard is seen" (it was a 0ns or 15000ns, this is always 15000ns; > > > moreover printf is out of the "timing" section): > > isn't the time slice about 10ms. ? > > Actually is

RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker
> > > > > > > > Hmm. I do remember this patch. Can you submit this to cygwin-patches > > > in the correct format: http://cygwin.com/contrib.html ? > > > > Given enough time, yes (never hacked that one, but it seems that only > > winsup/cygwin/times.cc would need to be modified).. anyway of cour

Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini
> > I adapted the code to find exactly the minimum time slice, and not "how well > > 1ms of retard is seen" (it was a 0ns or 15000ns, this is always 15000ns; > > moreover printf is out of the "timing" section): > isn't the time slice about 10ms. ? Actually is between 15 and 16ms: try 1: 4376875

Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini
> > would give 3-4 microsecond precision on "deltas" but an initial uncertainty of > ^ > > the usual 15 milliseconds or so. > > > This is a output of the mentioned profiler. It say about a minimal time of about 1-2 >us. May the difference be > caused by the cygwin.dll overhead ?

RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker
> > > > Hmm. I do remember this patch. Can you submit this to cygwin-patches > > in the correct format: http://cygwin.com/contrib.html ? > > Given enough time, yes (never hacked that one, but it seems that only > winsup/cygwin/times.cc would need to be modified).. anyway of course I'm one of > t

RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker
> > > >> Has anyone address this problem already. I have looked int the > > >> cygwin and list and found the only topic > > >http://sources.redhat.com/ml/cygwin/2001-12/msg00201.html > > In the attached file there is a "patch" for gettmieofday: > > --- > int gettimeofday(struct timeval *tv,

Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Christopher Faylor
On Thu, Jan 24, 2002 at 11:43:10AM +0100, Lapo Luchini wrote: >> >> Do you have an assignment on file with Red Hat? >> >Sorry but english knowledge doesn't let me understand "assignment on file", could >> >you explain it to me with other words? >> http://cygwin.com/contrib.html > >Got it... I'll s

Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini
> >> Do you have an assignment on file with Red Hat? > >Sorry but english knowledge doesn't let me understand "assignment on file", could > >you explain it to me with other words? > http://cygwin.com/contrib.html Got it... I'll send one ASAP (-_- snail mail... when will a signed e-mail be accepte

Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini
> As long as the calibration only occurs when someone is using > gettimeofday, not on every cygwin1.dll load, then that sounds fine to > me. I wouldn't call it "calibration" is just a quick call to the old gettimeofday() and, yes, it's done only on the first call (the value is retanied in a stati

Re: gettimeofday() does not returns usec resolution

2002-01-23 Thread Robert Collins
=== - Original Message - From: "Lapo Luchini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 12:34 PM Subject: Re: gettimeofday() does not returns usec resolution > > Hmm. I do remember this patch. Can you submit this to cygwi

Re: gettimeofday() does not returns usec resolution

2002-01-23 Thread Christopher Faylor
On Thu, Jan 24, 2002 at 02:34:44AM +0100, Lapo Luchini wrote: >> Do you have an assignment on file with Red Hat? > >Sorry but english knowledge doesn't let me understand "assignment on file", could >you explain it to me with other words? http://cygwin.com/contrib.html cgf -- Unsubscribe info:

Re: gettimeofday() does not returns usec resolution

2002-01-23 Thread Lapo Luchini
> Hmm. I do remember this patch. Can you submit this to cygwin-patches > in the correct format: http://cygwin.com/contrib.html ? Given enough time, yes (never hacked that one, but it seems that only winsup/cygwin/times.cc would need to be modified).. anyway of course I'm one of the few that act