1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifdef __cplusplus extern "C" { #endif #pragma once #include <stdint.h> #define CLOCK_MONOTONIC 1 struct timespec { int64_t tv_sec; int64_t tv_nsec; }; int clock_gettime(int clockid, struct timespec *tp); int sched_yield(); #ifdef __cplusplus } #endif