delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de> |
To: | "Cygwin" <cygwin AT sources DOT redhat DOT com> |
Subject: | RE: gettimeofday() does not returns usec resolution |
Date: | Fri, 25 Jan 2002 07:48:51 +0100 |
Message-ID: | <004101c1a56c$590f23e0$0fa807d5@BRAMSCHE> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0 |
Importance: | Normal |
In-reply-to: | <3C507C76.7F039537@lapo.it> |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
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 AT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |