times.h 619 B

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