CHECK_SYMBOL_EXISTS(CLOCK_PROCESS_CPUTIME_ID time.h HAVE_CLOCK_PROCESS_CPUTIME_ID)
CHECK_SYMBOL_EXISTS(CLOCK_VIRTUAL time.h HAVE_CLOCK_VIRTUAL)
ELSE(HAVE_CLOCK_GETTIME)
- CHECK_INCLUDE_FILES(sys/timeb.h HAVE_SYS_TIMEDB_H)
+ CHECK_INCLUDE_FILES(sys/timeb.h HAVE_SYS_TIMEB_H)
ENDIF(HAVE_CLOCK_GETTIME)
CHECK_C_SOURCE_COMPILES ("#include <sys/types.h>
}
clock_gettime(clkid, &ts);
trans_id = ts.tv_nsec & 0xffff;
-#elif defined(HAVE_SYS_TIMEDB_H)
+#elif defined(HAVE_SYS_TIMEB_H)
struct timeb tb;
ftime(&tb);
trans_id = tb.millitm & 0xffff;