[PATCH] change CLOCKS_PER_SEC to match POSIX:XSI

Bob Wilson bwilson@tensilica.com
Thu Oct 6 23:13:00 GMT 2005


The XSI extension to POSIX requires that CLOCKS_PER_SEC be defined to one 
million.  The current value in newlib, except for RTEMS and ARM, is 1000.  Since 
this value seems pretty arbitrary, wouldn't it be better to go with the POSIX 
value?  Here is a patch to change it.

2005-10-06  Bob Wilson  <bob.wilson@acm.org>

	* libc/include/time.h (CLOCKS_PER_SEC): Define to 1000000.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clocks-per-sec.diff
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20051006/99c371f2/attachment.bin>


More information about the Newlib mailing list