delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/12/11:13:38

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT 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 DOT 20070211192014 AT gnu DOT org>
Mime-Version: 1.0
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019