Reimplement clock(3) and switch to OpenBSD time(3).

The new implementation is a better approximation to the processor time used
by the process because it's actually based on resource usage rather than just
elapsed wall clock time.

Change-Id: I9e13b69c1d3048cadf0eb9dec1e3ebc78225596a
This commit is contained in:
Elliott Hughes
2014-03-11 13:37:11 -07:00
parent 753e139906
commit cccfe1e17c
4 changed files with 48 additions and 37 deletions

View File

@@ -25,6 +25,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef _SYS_TIMES_H_
#define _SYS_TIMES_H_
@@ -34,7 +35,7 @@
__BEGIN_DECLS
extern clock_t times(struct tms *);
extern clock_t times(struct tms*);
__END_DECLS