TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Marcel Vandevusse
from: Nick Alcock
date: 1997-01-04 17:14:00
subject: Re: pentium counter register

On 18 Dec 96  23:52:06, Marcel Vandevusse scribed in letters of flame on
the boiling sky:

 MV> Replying to a message of Vitus Jensen to Marcel Vandevusse:
 
 VJ> Timing your code under OS/2 isn't really possible because of the
 VJ> peemptive 
 VJ> multitasking.

 MV> It is when you're timing yout code at priority level 4 (server). Stops
 MV> the rest of the system dead in it's tracks. 

Er, sorry to disagree, but no, it doesn't. Unless some radical remodelling
has gone on since OS/2 2.11, priority class 4xx (foreground server) is not
the highest priority level.
Priority level 3xx *is* the highest; I've personally had experience of
running threads at 31F and locking myself (and all other processes) out of
the system.

If you haven't got the CPU clock meter (as I haven't; 486 only), there is
a nanosecond timer (982ns period I think) which is almost as good.

I tend to use gprof anyway. :)


... Out of paper reading drive I: (A)bort (R)etry (F)ail
--- Blue Wave/Max v2.30 [NR]
* Origin: Me/2 (2:254/259)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 640/201 711/409 410 413 430
SEEN-BY: 711/808 809 934 955 712/311 407 505 506 517 623 624 704 841 713/317
SEEN-BY: 800/1
@PATH: 254/259 442/403 255/1 440/4 141/209 270/101 712/624 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™.