TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Marcel Vandevusse
from: Detlef Engert
date: 1996-12-10 19:04:48
subject: pentium counter register

Hello Marcel!

Thus quoth Marcel Vandevusse to All :
 MV> I am trying to time a piece of assembly code; supposed the Intel
 MV> Pentium has a register which counts clock ticks. I figured this would
 MV> be the easiest accessable counter with a high enough resolution for my
 MV> purpose, but: I don't know how to access this register.

You need ring 0 privileges to access the Pentium performance counter
registers but your code runs (usually) at ring 3. I don't know for sure if
there is a mapping of the counter you need to a MSR (which could be read at
ring 3).

 MV> And do any other CPUs (80486, PPRO, Cyrix, AMD, etc) have a register
 MV> like this?

PPRO does.

bye, Detlef

 ! mailto dengert{at}medav.de, 2:2490/2576.1{at}fidonet
--- Sqed/32 1.13b2/r00108
* Origin: Nachtigall/2,Nuernberg/Ger,+49-911-861319,Z19+ISDN (2:2490/2575.2)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 2490/2575 2580 2001 24/888 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.