| 113 | 113 | int nanosleep(in timespec*, timespec*); |
|---|
| 114 | 114 | int timer_create(clockid_t, sigevent*, timer_t*); |
|---|
| 115 | 115 | int timer_delete(timer_t); |
|---|
| 116 | 116 | int timer_gettime(timer_t, itimerspec*); |
|---|
| 117 | 117 | int timer_getoverrun(timer_t); |
|---|
| 118 | 118 | int timer_settime(timer_t, int, in itimerspec*, itimerspec*); |
|---|
| 119 | 119 | */ |
|---|
| 120 | 120 | |
|---|
| 121 | 121 | version( linux ) |
|---|
| 122 | 122 | { |
|---|
| 140 | | enum CLOCK_REALTIME = 0; |
|---|
| 141 | | enum TIMER_ABSTIME = 0x01; |
|---|
| | 137 | enum CLOCK_REALTIME = 0; // Identifier for system-wide realtime clock. |
|---|
| | 138 | enum CLOCK_MONOTONIC = 1; // Monotonic system-wide clock. |
|---|
| | 139 | enum CLOCK_PROCESS_CPUTIME_ID = 2; // High-resolution timer from the CPU. |
|---|
| | 140 | enum CLOCK_THREAD_CPUTIME_ID = 3; // Thread-specific CPU-time clock. |
|---|
| | 141 | enum CLOCK_MONOTONIC_RAW = 4; // Monotonic system-wide clock, not adjusted for frequency scaling. |
|---|
| | 142 | enum CLOCK_REALTIME_COARSE = 5; // Identifier for system-wide realtime clock, updated only on ticks. |
|---|
| | 143 | enum CLOCK_MONOTONIC_COARSE = 6; // Monotonic system-wide clock, updated only on ticks. |
|---|
| | 144 | |
|---|
| | 145 | enum TIMER_ABSTIME = 0x01; |
|---|
| 142 | 146 | |
|---|
| 143 | 147 | alias int clockid_t; |
|---|
| 144 | 148 | alias int timer_t; |
|---|
| 145 | 149 | |
|---|
| 146 | 150 | int clock_getres(clockid_t, timespec*); |
|---|
| 147 | 151 | int clock_gettime(clockid_t, timespec*); |
|---|
| 148 | 152 | int clock_settime(clockid_t, in timespec*); |
|---|
| 149 | 153 | int nanosleep(in timespec*, timespec*); |
|---|
| 150 | 154 | int timer_create(clockid_t, sigevent*, timer_t*); |
|---|
| 151 | 155 | int timer_delete(timer_t); |
|---|