From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Any comments about using RDTSC to sync code ? Date: Sun, 1 Apr 2001 00:45:53 -0500 Organization: Global Crossing Telecommunications Lines: 34 Sender: UNKNOWN AT 209-130-218-209 DOT nas1 DOT roc DOT gblx DOT net Message-ID: <9a6f83$14gi$1@node17.cwnet.frontiernet.net> References: <3ACABB23 AT MailAndNews DOT com> NNTP-Posting-Host: 209-130-218-209.nas1.roc.gblx.net X-Trace: node17.cwnet.frontiernet.net 986103875 37394 209.130.218.209 (1 Apr 2001 05:44:35 GMT) X-Complaints-To: abuse AT frontiernet DOT net NNTP-Posting-Date: 1 Apr 2001 05:44:35 GMT 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 "Tom St Denis" wrote in message news:O1zx6.177142$p66 DOT 52247228 AT news3 DOT rdc1 DOT on DOT home DOT com... > > "Eduardo TUDA Lorenzetti Pellini" wrote in message > news:3ACABB23 AT MailAndNews DOT com... > > > > The second problem is that (i think) PC hardware don't have any > > stabilization > > method for the CPU internal clock (Xtal voltage and temperature > regulation). > > So i think that the CPU clock may vary, but i don't know how much. > > Typically it's about 10%. My athlon 1200mhz runs at "supposedly" 1211mhz > according to various programs. "Vary at runtime" is not a difference between the average CPU speed and the label sticked on the chip... > Using RDTSC to sync programs is a bad idea since RDTSC may take a variable > amount of cycles to complete. Why? Good Luck -- Alexei A. Frounze alexfru [AT] chat [DOT] ru http://alexfru.chat.ru http://members.xoom.com/alexfru/ http://welcome.to/pmode/