diff options
| author | BernardXiong <[email protected]> | 2017-12-31 16:43:08 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2017-12-31 16:43:08 +0800 |
| commit | d3da3bd9b2bc6aead60a7b1ca36888e4fc03c5d8 (patch) | |
| tree | e82d528d1682814ea9edfa092ea3c627627a0923 /components/libc/pthreads/pthread.h | |
| parent | 1383a9773732253e79e2ef3625e4f79ab3b43b69 (diff) | |
[libc] move clock_time to time.
Diffstat (limited to 'components/libc/pthreads/pthread.h')
| -rw-r--r-- | components/libc/pthreads/pthread.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/components/libc/pthreads/pthread.h b/components/libc/pthreads/pthread.h index d79a065fe6..b60aa37471 100644 --- a/components/libc/pthreads/pthread.h +++ b/components/libc/pthreads/pthread.h @@ -276,35 +276,4 @@ int pthread_barrier_init(pthread_barrier_t *barrier, int pthread_barrier_wait(pthread_barrier_t *barrier); -/* posix clock and timer */ -#define MILLISECOND_PER_SECOND 1000UL -#define MICROSECOND_PER_SECOND 1000000UL -#define NANOSECOND_PER_SECOND 1000000000UL - -#define MILLISECOND_PER_TICK (MILLISECOND_PER_SECOND / RT_TICK_PER_SECOND) -#define MICROSECOND_PER_TICK (MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND) -#define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND) - -#ifndef CLOCK_REALTIME -#define CLOCK_REALTIME 1 -#endif - -#define CLOCK_CPUTIME_ID 2 - -#ifndef CLOCK_PROCESS_CPUTIME_ID -#define CLOCK_PROCESS_CPUTIME_ID CLOCK_CPUTIME_ID -#endif -#ifndef CLOCK_THREAD_CPUTIME_ID -#define CLOCK_THREAD_CPUTIME_ID CLOCK_CPUTIME_ID #endif - -#ifndef CLOCK_MONOTONIC -#define CLOCK_MONOTONIC 4 -#endif - -int clock_getres (clockid_t clockid, struct timespec *res); -int clock_gettime (clockid_t clockid, struct timespec *tp); -int clock_settime (clockid_t clockid, const struct timespec *tp); - -#endif - |
