X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <4783CBDE.8070201@huarp.harvard.edu>
Date: Tue, 08 Jan 2008 14:15:42 -0500
From: Norton Allen <allen@huarp.harvard.edu>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Does clock() work?
References: <4783B96D.9060709@huarp.harvard.edu> <4783C3D9.6020303@sbcglobal.net>
In-Reply-To: <4783C3D9.6020303@sbcglobal.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass (ent.arp.harvard.edu: 10.0.0.122 is authenticated by a trusted mechanism)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Greg Chicares wrote:
> I get similar results with the same program. According to
> C99 7.23.2.1/2,
>   "The clock function determines the processor time used."
> so I'd guess that sleep() is consuming only wall-clock time.
>   
Ah, good catch. Thank you.
Now, I am definitely interested in wall clock elapsed time. Is there 
anything available that will give me real time at resolution greater 
than one second?

-Norton



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

