From: dcasale AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: DJGPP timer slowdown Date: Wed, 31 Jan 2001 01:11:19 GMT Organization: Deja.com Lines: 37 Message-ID: <957onh$6iv$1@nnrp1.deja.com> 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> <947ugl$cr0q9$1 AT ID-57378 DOT news DOT dfncis DOT de> NNTP-Posting-Host: 199.249.234.30 X-Article-Creation-Date: Wed Jan 31 01:11:19 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) X-Http-Proxy: 1.1 x55.deja.com:80 (Squid/1.1.22) for client 199.249.234.30 X-MyDeja-Info: XMYDJUIDdcasale To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <947ugl$cr0q9$1 AT ID-57378 DOT news DOT dfncis DOT de>, "Alexei A. Frounze" wrote: > "Lasse Kärkkäinen / Tronic" 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. [snip] Ah ha!! I posted a long while ago about a timer slowdown that happened in my compression program. With compression turned off, the timer was accurate, but with compression turned on, it was slow. Now I know why, based on what was written above. I _was_ running SmartDrive. By the way, a friend of mine made the suggestion that calling a disk access interrupt (such as INT13h, AH=0x42h or AH=0x43h) and reading or writing a lot of sectors in a 32-bit protected mode program might cause timer ticks to be lost during the interrupt. Does anyone know if this might be the case, or is it just SmartDrive that's the culprit? Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious) If someone slowed down every clock in the universe by an equal proportion, would anyone notice? Sent via Deja.com http://www.deja.com/