exists regardles of system. Seems BSD actually is the weird case here.
Still use CLOCK_REALTIME as fallback.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@37249
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
static inline int
_eina_counter_time_get(Eina_Nano_Time *tp)
{
-#if defined (__linux__) && defined(CLOCK_PROCESS_CPUTIME_ID)
+#if defined(CLOCK_PROCESS_CPUTIME_ID)
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
-#elif defined(__FreeBSD__) && defined(CLOCK_PROF)
+#elif defined(CLOCK_PROF)
return clock_gettime(CLOCK_PROF, tp);
#else
- return clock_gettime(CLOCK, tp);
+ return clock_gettime(CLOCK_REALTIME, tp);
#endif
}
#else