6731665740
A fast CPU emulator environment. PR: 67506 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
12 lines
456 B
Text
12 lines
456 B
Text
Index: qemu/vl.c
|
|
@@ -666,8 +667,8 @@
|
|
{
|
|
struct timeval r;
|
|
if (!gettimeofday(&r, NULL)) {
|
|
- return ((CLK_TCK * 1000LL) * (int64_t)r.tv_sec
|
|
- + ((int64_t)r.tv_usec * CLK_TCK) / 1000) / timer_freq;
|
|
+ return ((timer_freq * 1000LL) * (int64_t)r.tv_sec
|
|
+ + ((int64_t)r.tv_usec * timer_freq) / 1000) / timer_freq;
|
|
}
|
|
}
|
|
#else
|