mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 988463 - Add in support for tracelogging on ARM. r=h4writer
This commit is contained in:
parent
f450b1c7e9
commit
8dd820fafd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user