delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/09/10:58:32

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
X-WM-Posted-At: avacado.atomice.net; Thu, 9 May 02 16:01:08 +0100
Message-ID: <043e01c1f76a$59a51670$0100a8c0@advent02>
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin AT cygwin DOT com>
References: <15547 DOT 16136 DOT 163472 DOT 840007 AT bea DOT com><20020415214133 DOT GA19612 AT redhat DOT com><15577 DOT 12319 DOT 622365 DOT 566799 AT bea DOT com><20020508144104 DOT GA1093 AT redhat DOT com> <15578 DOT 30482 DOT 568575 DOT 767214 AT bea DOT com>
Subject: Re: [PATCH] gettimeofday time travels
Date: Thu, 9 May 2002 16:01:08 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> Both approaches cope with suspend/resume and base time changes of more
> than delta.
>
> I the decision is now a question of efficiency. My approach is
> simpler, and it means we don't have to call both
> QueryPerformanceCounter and GetSystemTime every time. It also means we
> don't have to do arithmetic to get the result of GetSystemTime in some
> form in which it can be compared to our QueryPerformanceCounter
> calculation.
>
> I can't see any other reason to pick ChrisJ's method over mine?
>
> Thoughts anyone...?
Re-initializing primed_ft periodically will cause the timer to jump around
whenever you do it since there may have been performance counter ticks in
between the last system tick. In fact the time may even appear to go
backwards. I don't know if this is such a good idea.

Regards
Chris



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