Bug 988463 - Add in support for tracelogging on ARM. r=h4writer

This commit is contained in:
Marty Rosenberg 2015-06-26 11:52:50 -07:00
parent f450b1c7e9
commit 8dd820fafd

View File

@ -73,6 +73,18 @@ rdtsc(void)
return result;
}
#elif defined(__arm__)
#include <sys/time.h>
static __inline__ uint64_t
rdtsc(void)
{
struct timeval tv;
gettimeofday(&tv, NULL);
uint64_t ret = tv.tv_sec;
ret *= 1000000;
ret += tv.tv_usec;
return ret;
}
#else
static __inline__ uint64_t
rdtsc(void)