delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/12/10:20:37

X-Spam-Check-By: sourceware.org
Date: Mon, 12 Feb 2007 09:19:39 -0600
From: Brian Ford <Brian DOT Ford AT FlightSafety DOT com>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: strange bug in gettimeofday function
In-Reply-To: <45CFD856.10106@gmail.com>
Message-ID: <Pine.CYG.4.58.0702120912250.3796@PC1163-8460-XP.flightsafety.com>
References: <1562006224 DOT 20070211192014 AT gnu DOT org> <45CFD856 DOT 10106 AT gmail DOT com>
MIME-Version: 1.0
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

On Mon, 12 Feb 2007, Carlo Florendo wrote:

> Windows could be accurate up to 15 ms or perhaps a little bit more.
> However, it is very difficult to achieve less than 15 ms or microsecond
> accuracy with windows due to the limitation on the OS itself.  Our
> extensive tests on windows clocks and timers reveal that windows cannot
> be accurate to the microsecond level or below 15 ms.
>
> In any case, in my experience, windows cannot be accurate with a
> precision of up to 15 milliseconds.

I'm sorry, could you repeat that value one more time, just in case someone
missed it ;-).

Anyway, I don't think it is relevant to the original thread's question,
but I can assure you that Windows can be used for accurate timings in down
to 1 or 2 ms (depending on the OS version).

I'm not exactly sure what your definition of accurate is.  And, for the
OP, I haven't ever seen this behavior from gettimeofday.

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
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