TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Marcel Vandevusse
from: Rinat Sadretdinow
date: 1996-12-06 11:10:52
subject: pentium counter register

Hello Marcel!

 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.

 MV> Does anybody know how to do this?

You can gain access to this and many other registers from ring 0 only. So
you have to write your own device driver which will gather information and
transfer it to your program via ioctl or by some other way (cannot imagine
something better than ioctl though).

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

PPRO has.

Bye!
Rinat Sadretdinow                                              [Team OS/2]

---
* Origin: -= Thunder Bird =- +7 095 947 1209 10:00pm-08:00am (2:5020/620)
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: 5020/620 509 443 79 5100/8 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™.