about summary refs log tree commit diff
path: root/src/thread/pthread_equal.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-13 08:40:11 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-13 08:40:11 -0400
commitad5759821ced59bbb70eb36d396df2a787141089 (patch)
tree0c05a0e7344b3a79f4f7da1a70b42e2257cced1c /src/thread/pthread_equal.c
parent4054a135fc0e6c1b7c33f688dcddecee0b2b22d2 (diff)
downloadmusl-ad5759821ced59bbb70eb36d396df2a787141089.tar.gz
musl-ad5759821ced59bbb70eb36d396df2a787141089.tar.xz
musl-ad5759821ced59bbb70eb36d396df2a787141089.zip
fix clock() function
it previously was returning the pseudo-monotonic-realtime clock
returned by times() rather than process cputime. it also violated C
namespace by pulling in times().

we now use clock_gettime() if available because times() has
ridiculously bad resolution. still provide a fallback for ancient
kernels without clock_gettime.
Diffstat (limited to 'src/thread/pthread_equal.c')
0 files changed, 0 insertions, 0 deletions