2000-02-17 11:39:52 -08:00
|
|
|
#ifndef _SYS_TIMES_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#define _SYS_TIMES_H
|
|
|
|
|
|
|
|
#include <_ansi.h>
|
2016-04-13 04:10:15 -07:00
|
|
|
#include <sys/_types.h>
|
2000-02-17 11:39:52 -08:00
|
|
|
|
2016-04-15 04:44:16 -07:00
|
|
|
#if !defined(__clock_t_defined) && !defined(_CLOCK_T_DECLARED)
|
|
|
|
typedef _CLOCK_T_ clock_t;
|
|
|
|
#define __clock_t_defined
|
|
|
|
#define _CLOCK_T_DECLARED
|
2000-02-17 11:39:52 -08:00
|
|
|
#endif
|
|
|
|
|
2000-12-04 10:47:07 -08:00
|
|
|
/* Get Process Times, P1003.1b-1993, p. 92 */
|
2000-02-17 11:39:52 -08:00
|
|
|
struct tms {
|
|
|
|
clock_t tms_utime; /* user time */
|
|
|
|
clock_t tms_stime; /* system time */
|
|
|
|
clock_t tms_cutime; /* user time, children */
|
|
|
|
clock_t tms_cstime; /* system time, children */
|
|
|
|
};
|
|
|
|
|
2017-12-03 21:54:48 -08:00
|
|
|
clock_t times (struct tms *);
|
2012-08-08 04:04:18 -07:00
|
|
|
#ifdef _COMPILING_NEWLIB
|
2017-12-03 21:54:48 -08:00
|
|
|
clock_t _times (struct tms *);
|
2012-08-08 04:04:18 -07:00
|
|
|
#endif
|
2000-02-17 11:39:52 -08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !_SYS_TIMES_H */
|