This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Replacement for constant CLK_TCK in gcc version 3
- From: Cong <vo dot chi dot cong at is dot titech dot ac dot jp>
- To: edwinc at ca dot ibm dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 13 Jul 2002 09:33:35 +0900 (JST)
- Subject: Re: Replacement for constant CLK_TCK in gcc version 3
- References: <OFDD32B6A1.9C68ECD8-ON85256BF4.0049A329@torolab.ibm.com>
#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.
>
>
>