mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 06:18:08 +00:00
cleanup qemu/util/qemu-timer-common.c
This commit is contained in:
parent
647c97ddc3
commit
45717c61ba
2 changed files with 0 additions and 19 deletions
|
@ -181,8 +181,6 @@ static inline int64_t get_clock(void)
|
|||
|
||||
#else
|
||||
|
||||
extern int use_rt_clock;
|
||||
|
||||
static inline int64_t get_clock(void)
|
||||
{
|
||||
return get_clock_realtime();
|
||||
|
|
|
@ -41,21 +41,4 @@ static void __attribute__((constructor)) init_get_clock(void)
|
|||
}
|
||||
clock_freq = freq.QuadPart;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int use_rt_clock;
|
||||
|
||||
static void __attribute__((constructor)) init_get_clock(void)
|
||||
{
|
||||
use_rt_clock = 0;
|
||||
#ifdef CLOCK_MONOTONIC
|
||||
{
|
||||
struct timespec ts;
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
|
||||
use_rt_clock = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue