All of lore.kernel.org
 help / color / mirror / Atom feed
From: Duo jia <jiaduo19920301@gmail.com>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: Application of QEMUTimer in short timing.
Date: Tue, 7 Sep 2021 19:26:31 +0800	[thread overview]
Message-ID: <CALUzjTbw0m-n0wmqYPw9C_SFVrCYvqOde6qUsB40FMM9BVPHZg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

In the controller, QEMUTimer will be used in the implementation of timer
simulation.

I wrote an auto-loading timer with a period of 1ms and the clock source
used is QEMU_CLOCK_VIRTUAL. But it doesn't seem to be very accurate,
because the actual time after I accumulated it to 500 times took about
700ms.

I think qemu's code will consume some time, is it true?


thank you ~

[-- Attachment #2: Type: text/html, Size: 456 bytes --]

             reply	other threads:[~2021-09-07 11:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 11:26 Duo jia [this message]
2021-09-07 12:19 ` Application of QEMUTimer in short timing Peter Maydell
2021-09-08  2:50   ` Duo jia
2021-09-08  9:46     ` Peter Maydell
2021-09-09 12:21       ` Duo jia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALUzjTbw0m-n0wmqYPw9C_SFVrCYvqOde6qUsB40FMM9BVPHZg@mail.gmail.com \
    --to=jiaduo19920301@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.