summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/src/clock.c (follow)
AgeCommit message (Collapse)Author
2017-09-07Implement clock()Sebastian Huber
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(). Since RTEMS has only one process, the implementation can be simplified. Update #3121.