X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 28 Mar 2006 09:03:08 -0500 Message-Id: <200603281403.k2SE38fq012162@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <1143542847.613686.87820@v46g2000cwv.googlegroups.com> (dontsend AT operamail DOT com) Subject: Re: new gcc 4.10 behaviour References: <1143542847 DOT 613686 DOT 87820 AT v46g2000cwv DOT googlegroups DOT com> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk The right way to test clock() is to benchmark it against a known time source, like time(). Wait for time() to change, measure clock(), wait for time() to change again, measure clock() again. Now compute clocks per second. Print that and CLOCKS_PER_SEC.