time.h 375 B

12345678910111213141516171819
  1. #ifndef _MACHTIME_H_
  2. #define _MACHTIME_H_
  3. #if defined(__rtems__)
  4. #define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
  5. #else /* !__rtems__ */
  6. #if defined(__arm__) || defined(__thumb__)
  7. #define _CLOCKS_PER_SEC_ 100
  8. #endif
  9. #endif /* !__rtems__ */
  10. #ifdef __SPU__
  11. #include <sys/types.h>
  12. int nanosleep (const struct timespec *, struct timespec *);
  13. #endif
  14. #endif /* _MACHTIME_H_ */