X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthew Woehlke <mw_triad@users.sourceforge.net>
Subject:  Re: strange bug in gettimeofday function
Date:  Mon, 12 Feb 2007 10:12:52 -0600
Lines: 17
Message-ID: <eqq3m4$uk2$1@sea.gmane.org>
References:  <1562006224.20070211192014@gnu.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

