delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/08/15:15:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <4783B96D DOT 9060709 AT huarp DOT harvard DOT edu> <4783C3D9 DOT 6020303 AT sbcglobal DOT net> <4783CBDE DOT 8070201 AT huarp DOT harvard DOT edu> <4783D05F DOT 5030007 AT sbcglobal DOT net>
Subject: RE: Does clock() work?
Date: Tue, 8 Jan 2008 20:14:49 -0000
Message-ID: <006401c85233$1eece330$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <4783D05F.5030007@sbcglobal.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 08 January 2008 19:35, Greg Chicares wrote:

>   [ TEST CASE ]

> /tmp[0]$./clock_test
> CLOCKS_PER_SEC = 1000
> clock() = 30
> gettimeofday() = 210033718
> clock() = 30
> gettimeofday() = 211033718
> clock() = 30
> gettimeofday() = 212033718
> clock() = 30
> gettimeofday() = 213033718
> clock() = 30
> gettimeofday() = 214033718
> clock() = 30
> gettimeofday() = 215033718
> clock() = 30
> gettimeofday() = 216033718
> clock() = 30
> gettimeofday() = 217033718


  clock_setres might help with that.  (Disclaimer: Unverified statement).


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

- Raw text -


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