Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!evax!duff From: duff@evax.arl.utexas.edu (Robert Duff) Newsgroups: comp.os.msdos.programmer Subject: How Do You Determine Processor Speed Inside A Program? Message-ID: <1991Jan22.170156.14647@evax.arl.utexas.edu> Date: 22 Jan 91 17:01:56 GMT Organization: Computer Science Engineering Univ. of Texas at Arlington Lines: 23 I could not find this in the FAQ to see if this has been answered before, so please accept my apologies if it has: I am trying to write an application that needs to run based on real time. Unfortunately, my compiler, Turbo C 2.0, does not give enough time resolution with function "clock". Therefore, I must using a counter loop to achieve proper timing. My problem is that I want this application to be portable, and the variation in processor speeds of different computers causes faulty timing. 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. Thanks for any help. ------------------------------------------------------------------------------- Remeber the immortal words of Socrates | Robert Duff who said: | Automation & Robotics Research "I Drank WHAT!?" | Institute - (817) 794-5957 Chris Knight | duff@evax.uta.edu