From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDevf-0006EY-Ho for qemu-devel@nongnu.org; Tue, 22 Mar 2005 03:39:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDevb-0006Ck-PM for qemu-devel@nongnu.org; Tue, 22 Mar 2005 03:39:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDevb-0006Bw-Ky for qemu-devel@nongnu.org; Tue, 22 Mar 2005 03:39:55 -0500 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDeeG-0005g1-HG for qemu-devel@nongnu.org; Tue, 22 Mar 2005 03:22:00 -0500 Message-ID: <423FD59B.9050808@wasp.net.au> Date: Tue, 22 Mar 2005 12:21:47 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] WinXp Guest clock drift References: <423FB769.7080409@wasp.net.au> <79bf9848050321231566add3e9@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Magnus Damm wrote: > On Mon, 21 Mar 2005 23:15:24 -0800, Mike Swanson > wrote: > >>Well, this is probably a nuisance in all emulators :p > > > Does it have to be that way? I mean - if a media player can keep track > of the time of a movie (with and without sound) then wouldn't it be > possible for other applications like emulators to keep accurate time? > > I do not know how the time is handled in QEMU, but I wrote code some > years ago that monitored itself with gettimeofday() and adjusted the > drift on the fly. I actually find all sorts of oddities with timing and qemu emulation. Sometimes when installing stuff in a windows guest the guest slows to a crawl until I move the mouse around or drag a window or something similar. Almost like it starts to go to sleep until it gets some user interaction. There are a number of emulation oddities thus far, I just get used to them and work around them. I guess I should actually have a go at debugging them really. -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams