time.h 384 B

123456789101112131415
  1. #ifndef _MACHTIME_H_
  2. #define _MACHTIME_H_
  3. #if defined(__rtems__) || defined(__VISIUM__) || defined(__riscv)
  4. #define _CLOCKS_PER_SEC_ 1000000
  5. #elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
  6. #define _CLOCKS_PER_SEC_ 100
  7. #endif
  8. #ifdef __SPU__
  9. #include <sys/_timespec.h>
  10. int nanosleep (const struct timespec *, struct timespec *);
  11. #endif
  12. #endif /* _MACHTIME_H_ */