1 /* 2 Copyright (C) 1991 DJ Delorie 3 All rights reserved. 4 5 Redistribution, modification, and use in source and binary forms is permitted 6 provided that the above copyright notice and following paragraph are 7 duplicated in all such forms. 8 9 This file is distributed WITHOUT ANY WARRANTY; without even the implied 10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 */ 12 #ifndef _MACHTIME_H_ 13 #define _MACHTIME_H_ 14 15 #if defined(__rtems__) || defined(__VISIUM__) || defined(__riscv) 16 #define _CLOCKS_PER_SEC_ 1000000 17 #elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__) 18 #define _CLOCKS_PER_SEC_ 100 19 #endif 20 21 #ifdef __SPU__ 22 #include <sys/_timespec.h> 23 int nanosleep (const struct timespec *, struct timespec *); 24 #endif 25 26 #endif /* _MACHTIME_H_ */ 27