00001
00002
00011 #ifndef CXXUTILS_CLOCK_H
00012 #define CXXUTILS_CLOCK_H
00013
00014 #ifdef __APPLE__
00015 #include <time.h>
00016 #define CLOCK_REALTIME 0
00017 #define CLOCK_MONOTONIC 1
00018 #define CLOCK_PROCESS_CPUTIME_ID 2
00019 #define CLOCK_THREAD_CPUTIME_ID 3
00020
00021 long clock_gettime (unsigned int which_clock, struct timespec *tp);
00022 #endif
00023
00024 #endif // not CXXUTILS_CLOCK_H