Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4921 | Rev 6099 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _MACHTIME_H_ |
1 | #ifndef _MACHTIME_H_ |
2 | #define _MACHTIME_H_ |
2 | #define _MACHTIME_H_ |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #if defined(__rtems__) |
4 | #if defined(__rtems__) || defined(__VISIUM__) |
5 | #define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) |
- | |
6 | #else /* !__rtems__ */ |
5 | #define _CLOCKS_PER_SEC_ 1000000 |
7 | #if defined(__aarch64__) || defined(__arm__) || defined(__thumb__) |
6 | #elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__) |
8 | #define _CLOCKS_PER_SEC_ 100 |
7 | #define _CLOCKS_PER_SEC_ 100 |
9 | #endif |
- | |
Line 10... | Line 8... | ||
10 | #endif /* !__rtems__ */ |
8 | #endif |
11 | 9 | ||
12 | #ifdef __SPU__ |
10 | #ifdef __SPU__ |
13 | #include |
11 | #include |
Line 14... | Line 12... | ||
14 | int nanosleep (const struct timespec *, struct timespec *); |
12 | int nanosleep (const struct timespec *, struct timespec *); |
15 | #endif |
- | |
16 | - |