forked from enlightenment/efl
Better fallback on clock as suggested by Naruto TAKAHASHI
SVN revision: 37248
This commit is contained in:
parent
3488ca351f
commit
23fdacaa1e
|
@ -76,10 +76,12 @@ static int _eina_counter_init_count = 0;
|
|||
static inline int
|
||||
_eina_counter_time_get(Eina_Nano_Time *tp)
|
||||
{
|
||||
#ifdef __linux__
|
||||
#if defined (__linux__) && defined(CLOCK_PROCESS_CPUTIME_ID)
|
||||
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
|
||||
#else
|
||||
#elif defined(__FreeBSD__) && defined(CLOCK_PROF)
|
||||
return clock_gettime(CLOCK_PROF, tp);
|
||||
#else
|
||||
return clock_gettime(CLOCK, tp);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue