From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=ryszard.knop@intel.com; receiver=edk2-devel@lists.01.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F37072117D770 for ; Tue, 6 Nov 2018 04:13:14 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2018 04:13:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,471,1534834800"; d="scan'208,217";a="278731530" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga006.fm.intel.com with ESMTP; 06 Nov 2018 04:13:12 -0800 Received: from irsmsx111.ger.corp.intel.com ([169.254.2.195]) by irsmsx105.ger.corp.intel.com ([169.254.7.144]) with mapi id 14.03.0415.000; Tue, 6 Nov 2018 12:13:11 +0000 From: "Knop, Ryszard" To: "edk2-devel@lists.01.org" Thread-Topic: TimerLib - usable library on X64? Thread-Index: AdR1vS0ORTmd2ZvhQXCBTgsICcAQtg== Date: Tue, 6 Nov 2018 12:13:10 +0000 Message-ID: <01F0790E56F0534D8DCAD4AC5838792F618A084F@irsmsx111.ger.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjdhNmQxYzQtNjE0MC00YTdiLTliNjQtOGQwZmRiMzJhNDk5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNHVFYVFIaTk2NEl5QnVJT1h6elN2MFZjUTNKM1wvUFhBT3RaNG9WN1hYS0RSQWpGUkIwWmpXN2NLWHh1TFNaR3cifQ== x-originating-ip: [163.33.239.182] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: TimerLib - usable library on X64? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 12:13:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi everyone, I'm trying to use TimerLib to precisely measure time elapsed between specif= ic functions, and I'm having some issues trying to get it to work. On X64 p= latforms all I get is (depending on the TimerLib impl I use) either zeroes = from QueryPerformanceCounter (QueryPerformanceCounterProperties returns zer= oes for all the counters, except the frequency which is always reported as = 100Hz), or the platform hangs. I've tried a few TimerLib implementations an= d I'm a bit out of ideas by now. Am I doing something wrong in the code its= elf, or is there any concrete implementation that is known to work well? Sources I'm using: https://gist.github.com/DragoonAethis/7df6d8fb35c4f1932e= c42bacbcbf73a8 Thanks, Richard. -------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydz= ial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-31= 6 | 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 wi= adomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiek= olwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited.