delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/18/18:37:11

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading MSR (Athlon multiplier)
Date: Thu, 18 Jan 2001 18:34:39 -0500
Lines: 36
Message-ID: <947ugl$cr0q9$1@ID-57378.news.dfncis.de>
References: <3a66161d DOT 226362160 AT news DOT sci DOT fi> <945a90$ckgq1$1 AT ID-57378 DOT news DOT dfncis DOT de> <3a6746e4 DOT 36130587 AT news DOT sci DOT fi> <947nrf$cdrkr$1 AT ID-57378 DOT news DOT dfncis DOT de> <3a6775dd DOT 9880436 AT news DOT sci DOT fi>
NNTP-Posting-Host: pppa51-resalerochester3-5r7104.dialinx.net (4.4.209.240)
X-Trace: fu-berlin.de 979860823 13468489 4.4.209.240 (16 [57378])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Lasse Kärkkäinen / Tronic" <tronic2 AT sci DOT fi DOT don'tSPAMmeBUTremoveTHIS> wrote
in message news:3a6775dd DOT 9880436 AT news DOT sci DOT fi...
> Yep. That's not a problem, because I'm develeloping a benchmark for
> DOS-use.

The thing is that if there is some code that executes upon timer interrupt
or another interrupt happens inbetween tick waiting loop and RDTSC, we have
an incorrect value. And the more code is there, the more error. This way, if
you have drivers like SMARTDRV, RTC may be useless until you flush the disk
cache completely. And this is worsen under windows by other things.

> What do you think, could I get more accurate times by using RTC
> (instead of Allegro's timer) and a bit longer period?
>
> Allegro's timer almost stops on alt-tab -switch to another window.

Don't do "Alt-Tab" :)

> I still need to read MSR, do you (or anyone else) happen to know how
> to?

I haven't used that thing yet. Just RDTSC. But you may want to read intel
architecture software developer's manual (3 volumes) available on intel
site.

Good Luck
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
frounze [AT] ece [DOT] rochester [DOT] edu
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019