public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Knop, Ryszard" <ryszard.knop@intel.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: TimerLib - usable library on X64?
Date: Tue, 6 Nov 2018 12:13:10 +0000	[thread overview]
Message-ID: <01F0790E56F0534D8DCAD4AC5838792F618A084F@irsmsx111.ger.corp.intel.com> (raw)

Hi everyone,
I'm trying to use TimerLib to precisely measure time elapsed between specific functions, and I'm having some issues trying to get it to work. On X64 platforms all I get is (depending on the TimerLib impl I use) either zeroes from QueryPerformanceCounter (QueryPerformanceCounterProperties returns zeroes for all the counters, except the frequency which is always reported as 100Hz), or the platform hangs. I've tried a few TimerLib implementations and I'm a bit out of ideas by now. Am I doing something wrong in the code itself, or is there any concrete implementation that is known to work well?

Sources I'm using: https://gist.github.com/DragoonAethis/7df6d8fb35c4f1932ec42bacbcbf73a8

Thanks, Richard.
--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.


             reply	other threads:[~2018-11-06 12:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 12:13 Knop, Ryszard [this message]
2018-11-06 15:52 ` TimerLib - usable library on X64? Andrew Fish

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-list 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=01F0790E56F0534D8DCAD4AC5838792F618A084F@irsmsx111.ger.corp.intel.com \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox