Message-ID: <3E48F219.8FB9B40B@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: how to make a Timer References: <3e489301 DOT sandmann AT clio DOT rice DOT edu> <%v22a.45175$jM5 DOT 113869 AT newsfeeds DOT bigpond DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 Date: Tue, 11 Feb 2003 13:28:37 GMT NNTP-Posting-Host: 12.90.172.122 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1044970117 12.90.172.122 (Tue, 11 Feb 2003 13:28:37 GMT) NNTP-Posting-Date: Tue, 11 Feb 2003 13:28:37 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ben Peddell wrote: > > Why not make use of RDTSC? Just divide it by 84 for every 100MHz of CPU > speed. (i.e. for a 1GHz [100MHz x 10] processor, divide by 840; for a > processor with a 13.5x multiplier on a 143MHz FSB [1933MHz], divide by > 1620.) Please do not toppost. RDTSC will cause a bad opcode trap on a 486, or a 386, both of which are suitable processors for the DJGPP system. Bad idea. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!