[Question] CLOCKS_PER_SEC value
Corinna Vinschen
vinschen@redhat.com
Mon Aug 22 18:32:00 GMT 2011
On Aug 23 00:34, Joon Hee Lee wrote:
> Dear all,
>
> POSIX standard defines CLOCKS_PER_SEC value is 1000000.
No, it doesn't. Have a look into
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html:
"[XSI] The value of CLOCKS_PER_SEC shall be 1 million on XSI-conformant
systems."
Note that this is only required under the XSI conformance option.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
More information about the Newlib
mailing list