blob: 6c9a95892ade3e5e80dea621eb15230d638cd5b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|