2015-07-15 05:09:55 +00:00
|
|
|
#ifndef _SYS_TIMES_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#define _SYS_TIMES_H
|
|
|
|
|
|
|
|
#include <_ansi.h>
|
2017-04-13 03:52:05 +00:00
|
|
|
#include <sys/_types.h>
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if !defined(__clock_t_defined) && !defined(_CLOCK_T_DECLARED)
|
|
|
|
typedef _CLOCK_T_ clock_t;
|
|
|
|
#define __clock_t_defined
|
|
|
|
#define _CLOCK_T_DECLARED
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Get Process Times, P1003.1b-1993, p. 92 */
|
|
|
|
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 */
|
|
|
|
};
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
clock_t times (struct tms *);
|
2015-07-15 05:09:55 +00:00
|
|
|
#ifdef _COMPILING_NEWLIB
|
2018-02-16 13:43:18 +00:00
|
|
|
clock_t _times (struct tms *);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !_SYS_TIMES_H */
|