mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
6731665740
A fast CPU emulator environment. PR: 67506 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
13 lines
456 B
Plaintext
13 lines
456 B
Plaintext
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
|