Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com X-Original-Recipient: From: "Hannu E K Nevalainen (garbage mail)" To: Subject: RE: struct timeval : accuracy of tv_usec Date: Mon, 28 Apr 2003 10:31:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 In-Reply-To: Importance: Normal > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf > Of Alex Vinokur --8<-- > Here is some program and results of its run. > > Is 'accuracy of tv_usec' is microseconds here ? > We can see the almost 2000 prints have the same tv_usec value. --8<-- Don't expect too much. The measure might be in microseconds, but not even native APIs have true "accuracy" in milliseconds. Cygwin is an emulated environment, though close to native. Only RTOS'es guarantee any kind of accuracy - normally in milliseconds. OLD FACTS: The original 80's PC had an 18.2Hz interrupt driven software clock, though it ran at 4.77MHz. /Hannu E K Nevalainen, Mariefred, Sweden --END OF MESSAGE-- -- 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/