2015-09-03 05:41:00 +02:00
|
|
|
#ifndef CLOCK_NANOSLEEP_H
|
|
|
|
#define CLOCK_NANOSLEEP_H
|
|
|
|
|
2016-03-31 19:45:07 +02:00
|
|
|
#ifdef _CLOCKID_T_DEFINED_
|
|
|
|
#define CLOCKID_T
|
|
|
|
#endif
|
|
|
|
|
2016-03-31 19:38:34 +02:00
|
|
|
#ifndef CLOCKID_T
|
|
|
|
#define CLOCKID_T
|
2015-09-03 05:41:00 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
CLOCK_REALTIME,
|
|
|
|
CLOCK_MONOTONIC,
|
|
|
|
CLOCK_PROCESS_CPUTIME_ID,
|
|
|
|
CLOCK_THREAD_CPUTIME_ID
|
|
|
|
} clockid_t;
|
2016-03-31 19:38:34 +02:00
|
|
|
#endif // ifndef CLOCKID_T
|
|
|
|
|
2015-09-03 05:41:00 +02:00
|
|
|
|
|
|
|
#ifndef TIMER_ABSTIME
|
|
|
|
#define TIMER_ABSTIME 1
|
|
|
|
#endif // TIMER_ABSTIME
|
|
|
|
|
|
|
|
struct timespec;
|
|
|
|
|
|
|
|
int clock_nanosleep (clockid_t id, int flags, const struct timespec *ts,
|
|
|
|
struct timespec *ots);
|
|
|
|
|
|
|
|
#endif //CLOCK_NANOSLEEP_H
|