Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!altos!altos86!rcollins From: rcollins@altos86.Altos.COM (Robert Collins) Newsgroups: comp.os.msdos.programmer Subject: Re: How Do You Determine Processor Speed Inside A Program? Message-ID: <4634@altos86.Altos.COM> Date: 23 Jan 91 16:32:07 GMT References: <1991Jan22.170156.14647@evax.arl.utexas.edu> Reply-To: rcollins@altos86.UUCP (Robert Collins) Organization: Altos Computer Systems, San Jose, CA Lines: 16 In article <1991Jan22.170156.14647@evax.arl.utexas.edu> duff@evax.arl.utexas.edu (Robert Duff) writes: > >Is there a way to determine processor speed, in a relatively portable way, >from inside a program? I have looked at a list of standard MsDOS >interrupts and have found nothing. > Yes there is. Set up a timing loop, and time CPU instructions that have a known execution (clock) time. -- "Worship the Lord your God, and serve him only." Mat. 4:10 Robert Collins UUCP: ...!sun!altos86!rcollins HOME: (408) 225-8002 WORK: (408) 432-6200 x4356