X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 23 Oct 2007 12:32:08 -0500
From: Brian Ford <Brian.Ford@FlightSafety.com>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: RE: milliseconds on Windows
In-Reply-To: <000201c81593$045ae260$02fea8c0@DDZG9K91>
Message-ID: <Pine.CYG.4.58.0710231225150.3388@PC1163-8460-XP.flightsafety.com>
References: <38624.131.220.7.1.1193151578.squirrel@webmail.iai.uni-bonn.de>  <Pine.CYG.4.58.0710231015060.3388@PC1163-8460-XP.flightsafety.com>  <000201c81593$045ae260$02fea8c0@DDZG9K91>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
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

On Tue, 23 Oct 2007, Robert D. Holtz - Lists wrote:

> If you're feeling frisky it's also possible to write a low level routine
> that hooks the hardware clock and uses it for retrieving the time.

Or simply use QueryPerformanceCounter.

> This clock does go down to microsecond granularity.

Sure, there are lots of solutions to measuring time more accurately.

The solution I provided is better suited for scheduling processes as
accurately as Windows allows.

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

