summaryrefslogtreecommitdiff
path: root/src/time/clock.c
AgeCommit message (Collapse)AuthorLines
2011-08-13fix missing include in last commitRich Felker-0/+1
2011-08-13fix clock() functionRich Felker-2/+7
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.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+9