This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gettimeofday() does not returns usec resolution


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 between 15 and 16ms:
> 
> try  1: 437687512 - 437703512 = 16000
> try  2: 437703512 - 437719512 = 16000
> try  3: 437719512 - 437734512 = 15000
> try  4: 437734512 - 437750512 = 16000
> try  5: 437750512 - 437766512 = 16000
> try  6: 437766512 - 437781512 = 15000
> try  7: 437781512 - 437797512 = 16000
> try  8: 437797512 - 437812512 = 15000
> try  9: 437812512 - 437828512 = 16000
> try 10: 437828512 - 437844512 = 16000
> try 11: 437844512 - 437859512 = 15000
> try 12: 437859512 - 437875512 = 16000
> try 13: 437875512 - 437891512 = 16000
> try 14: 437891512 - 437906512 = 15000
> try 15: 437906512 - 437922512 = 16000
> try 16: 437922512 - 437937512 = 15000
> try 17: 437937512 - 437953512 = 16000
> try 18: 437953512 - 437969512 = 16000
> try 19: 437969512 - 437984512 = 15000
> try 20: 437984512 - 438000512 = 16000
> 
Thats my result on a toshiba Satelitte Pro 4300 Laptop with win2000 

habacker@BRAMSCHE ~/src/gettimeofday
$ ./a.exe
try  1: -347828856 - -347818856 = 10000
try  2: -347818856 - -347808856 = 10000
try  3: -347808856 - -347798856 = 10000
try  4: -347798856 - -347788856 = 10000
try  5: -347788856 - -347778856 = 10000
try  6: -347758856 - -347748856 = 10000
try  7: -347748856 - -347737856 = 11000
try  8: -347737856 - -347727856 = 10000
try  9: -347727856 - -347717856 = 10000
try 10: -347717856 - -347707856 = 10000
try 11: -347707856 - -347697856 = 10000
try 12: -347697856 - -347687856 = 10000
try 13: -347687856 - -347677856 = 10000
try 14: -347677856 - -347667856 = 10000
try 15: -347667856 - -347657856 = 10000
try 16: -347657856 - -347647856 = 10000
try 17: -347647856 - -347637856 = 10000
try 18: -347637856 - -347627856 = 10000
try 19: -347627856 - -347617856 = 10000
try 20: -347617856 - -347607856 = 10000




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]