Article View: comp.os.msdos.programmer
Article #4332Re: How Do You Determine Processor Speed Inside A Program?
From: Robert Collins
Date: Wed, 23 Jan 1991 16:32
Date: Wed, 23 Jan 1991 16:32
16 lines
1131 bytes
1131 bytes
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
Technical Details
Message-ID:
<4634@altos86.Altos.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!altos!altos86!rcollinsReferences:
<1991Jan22.170156.14647@evax.arl.utexas.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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