Article View: comp.arch
Article #23446Re: Win95 performance counter interface?
From: LKS
Date: Sat, 28 Nov 1998 00:00
Date: Sat, 28 Nov 1998 00:00
20 lines
1641 bytes
1641 bytes
Brandon Van Every wrote: > > Does Win95 have an API interface to SET UP the Pentium II performance > counters? i.e. a built-in method to indirectly execute the Ring 0 WRMSR > instruction? you can use the Win32 API QueryPerformanceCounter QueryPerformanceFrequency (needs kernel32.lib and winbase.h) or more directly the RDTSC instruction (I know this exists on the Pentium, but I'm not sure about P II). This returns the number of clock cycles executed since power-up in EDX:EAX but I don't know if there's a sensible way to get the frequency without doing a bit of timing and counting yourself.. -lks
Technical Details
Message-ID:
<73p61n$3tr$1@winter.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<72kj98$lpj$1@autumn.news.rcn.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,80c509bc716c6415 X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,80c509bc716c6415 X-Google-Attributes: gid102b75,public X-Google-Thread: f9d87,80c509bc716c6415 X-Google-Attributes: gidf9d87,public X-Google-Thread: 114917,80c509bc716c6415 X-Google-Attributes: gid114917,public From: LKS <lk213@hermes.cam.ac.uk> Subject: Re: Win95 performance counter interface? Date: 1998/11/28 Message-ID: <73p61n$3tr$1@winter.news.rcn.net> X-Deja-AN: 416512371 Content-Transfer-Encoding: 7bit Approved: <johnfine@erols.com> References: <72kj98$lpj$1@autumn.news.rcn.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rcn.com X-Trace: ErcsWxX2aO1caENKd1Sr6mA0t4hibuged1Cv0KU8yTc= Organization: University of Cambridge, England Mime-Version: 1.0 NNTP-Posting-Date: 28 Nov 1998 15:49:11 GMT Newsgroups: comp.arch,comp.lang.asm.x86,comp.sys.intel,intel.microprocessors.pentium_ii