This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Replacement for constant CLK_TCK in gcc version 3


#include <unistd.h>
long CLK_TCK= sysconf(_SC_CLK_TCK);

See man sysconf!

Cong

From: "Edwin Chan/Toronto/IBM" <edwinc@ca.ibm.com>
Subject: Replacement for constant CLK_TCK in gcc version 3
Date: Fri, 12 Jul 2002 09:24:38 -0400
Message-ID: <OFDD32B6A1.9C68ECD8-ON85256BF4.0049A329@torolab.ibm.com>

> The constant CLK_TCK, which presents the real value for clock ticks per
> second for the system, is now obsolete in gcc version 3.
> CLK_TCK is included in <bits/time.h>for gcc 2.95
> What's it's replacement in gcc version 3?
> I tried the constant CLOCKS_PER_SEC, but it doesn't seem to return the same
> value as CLK_TCK.
> 
> Thanks for your acknowledgement.
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]