times.h 663 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _SYS_TIMES_H
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #define _SYS_TIMES_H
  6. #include <_ansi.h>
  7. #include <sys/_types.h>
  8. #if !defined(__clock_t_defined) && !defined(_CLOCK_T_DECLARED)
  9. typedef _CLOCK_T_ clock_t;
  10. #define __clock_t_defined
  11. #define _CLOCK_T_DECLARED
  12. #endif
  13. /* Get Process Times, P1003.1b-1993, p. 92 */
  14. struct tms {
  15. clock_t tms_utime; /* user time */
  16. clock_t tms_stime; /* system time */
  17. clock_t tms_cutime; /* user time, children */
  18. clock_t tms_cstime; /* system time, children */
  19. };
  20. clock_t times (struct tms *);
  21. #ifdef _COMPILING_NEWLIB
  22. clock_t _times (struct tms *);
  23. #endif
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* !_SYS_TIMES_H */