X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke Subject: Re: strange bug in gettimeofday function Date: Mon, 12 Feb 2007 10:12:52 -0600 Lines: 17 Message-ID: References: <1562006224 DOT 20070211192014 AT gnu DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 In-Reply-To: <1562006224.20070211192014@gnu.org> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Andrew Makhorin wrote: > I detected a strange bug in the standard function gettimeofday. > It *sometimes* reports the time which being expressed as the integer > number of milliseconds is *less* than the time obtained *earlier* with > the same function. ...how often is "often"? Also what version of Windows are you running (I'm too lazy to save and re-open your cygcheck, it seems Thunderbird doesn't think it is text)? And for the $64k question, do you use NTP? I have seen this sort of behavior before (on Linux, IIRC, but it might have been Windows): it can be caused by NTP clock slew. -- Matthew Congratulations! You've won a free trip to the future! All you have to do to claim your prize is wait five minutes... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/