Changeset bdbf1ffa in rtems


Ignore:
Timestamp:
09/06/17 06:54:24 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f7f420e
Parents:
4d495cf
git-author:
Sebastian Huber <sebastian.huber@…> (09/06/17 06:54:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/07/17 05:40:19)
Message:

Implement clock()

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.

Location:
cpukit/libcsupport
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/Makefile.am

    r4d495cf rbdbf1ffa  
    6767    src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
    6868    src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c src/utimes.c src/lchown.c
     69SYSTEM_CALL_C_FILES += src/clock.c
    6970
    7071## Until sys/uio.h is moved to libcsupport, we have to have networking
Note: See TracChangeset for help on using the changeset viewer.