[RTEMS Project] #3121: clock() implementation in Newlib is broken

RTEMS trac trac at rtems.org
Wed Sep 6 06:15:49 UTC 2017


#3121: clock() implementation in Newlib is broken
-----------------------------+-----------------------------
 Reporter:  Sebastian Huber  |      Owner:  joel.sherrill@…
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  Indefinite
Component:  Newlib           |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Newlib uses _times_r() in clock(). The problem is that the _times_r()
 clock frequency is defined by sysconf(_SC_CLK_TCK).  The clock frequency
 of clock() is the constant CLOCKS_PER_SEC.

 FreeBSD uses getrusage() for clock().

--
Ticket URL: <http://devel.rtems.org/ticket/3121>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list