Re: Unportable CLK_TCK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Xavier Clarke " <xavier-clarke@xxxxxxxxxxx> writes:

> The program we are writing currently makes use of CLK_TCK (the number of processor clocks per second) 
> from ctime. This we believed was fairly safe; it is ANSI afterall. The configuration and make work fine under 
> Cywin, but Redhat Linux chokes during the make, saying CLK_TCK is undefined. We need either a portable 
> alternative, which we have been unable to turn up, or an autoconf macro to define/include it. Does anyone 
> pocess such a macro.

The standard macro is CLOCKS_PER_SEC, not CLK_TCK.
-- 
"You know, they probably have special dorms for people like us."
--American Pie




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux