You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 line
384B

  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_ */