delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/16/05:57:29

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Philip Aston" <paston AT bea DOT com>
MIME-Version: 1.0
Message-ID: <15547.62593.122446.381139@bea.com>
Date: Tue, 16 Apr 2002 10:53:05 +0100
To: cygwin AT cygwin DOT com
Subject: RE: [PATCH] gettimeofday time travels
In-Reply-To: <FC169E059D1A0442A04C40F86D9BA7600C5E42@itdomain003.itdomain.net.au>
References: <FC169E059D1A0442A04C40F86D9BA7600C5E42 AT itdomain003 DOT itdomain DOT net DOT au>


Robert Collins writes:
 > > -----Original Message-----
 > > From: Philip Aston [mailto:paston AT bea DOT com] 
 > > Sent: Tuesday, April 16, 2002 6:30 PM
 > > To: cygwin AT cygwin DOT com
 > > Subject: Re: [PATCH] gettimeofday time travels 
 > >  <snip>
 > >
 > > I'm no W32 expert but:
 > 
 > Become one. :]. Seriously - the documentation you need is on MSDN.
 > Search for FileTime and follow your nose.

To be fair I'd already done this. Still, I went and had another look
and I have to say that IMHO the QueryPerformance* calls aren't really
designed for maintaining system time in the way that gettimeofday
does. They are designed for accurately measuring small time periods
and certainly don't take into account the effects of system time
changes or my suspend/resume issue. I guess the reason these calls
were introduced in the first place was to support more accurate times.

Having done my homework, my fix looks less dirty and I can't think of
other approaches except reverting the use of QueryPerformance*.

- Phil



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

- Raw text -


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