Board index » delphi » How to detect machine speed in TP7?
Bryan Attewell
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Bryan Attewell
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
How to detect machine speed in TP7?
Hi
I have posted this question before without getting an answer, but I want a sure fire way of assessing the speed of the computer that I have tried loops using get time and similar, but on my Pentium 350 Any help appreciated Bryan -- br...@battewell.freeserve.co.uk |
Dr John Stockto
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?JRS: In article <7gaaa1$pj...@news6.svr.pol.co.uk> of Thu, 29 Apr 1999 20:01:40 in news:comp.lang.pascal.borland, Bryan Attewell <bryan@battewe Quotell.freeserve.co.uk> wrote: a working Crt unit, you can use Delay. -- |
Arno Feh
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?QuoteBryan Attewell wrote: What do you want to do with this 'speed'? Do you need the CPU clock rate? For this case, and only if you are working in protected mode, I would regards ------------------------------------------------------------------------ |
Robert AH Prin
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?In article <37296053.AAFFA...@bigfoot.de>, Arno Fehm <af...@bigfoot.de> wrote: Quote> Bryan Attewell wrote: What's wrong with RDTSC in real mode? Quote> suggest you to look for RDTSC. -- Robert AH Prins prin...@williscorroon.com -----------== Posted via Deja News, The Discussion Network ==---------- |
Arno Feh
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?QuoteRobert AH Prins wrote: Well, that's just what Jaap told me once when he introduced ME to RDTSC: [ pice of Jaap's posting to the thread 'Timer in DOS, running in a Quote> Oops, I have been affording myself the luxuries of protected mode Was he wrong? regards ------------------------------------------------------------------------ |
Robert AH Prin
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?In article <3729A62C.6A755...@bigfoot.de>, Arno Fehm <af...@bigfoot.de> wrote: Quote> Robert AH Prins wrote: Pentiums did not allow the use of it in V86 (Dos boxes) mode. Nowadays it is usable in every mode unless a bit in CR4(?) is (re?)set. Robert -----------== Posted via Deja News, The Discussion Network ==---------- |
Bryan Attewel
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?QuoteArno Fehm <af...@bigfoot.de> wrote in message Quote> Bryan Attewell wrote: Thanks for your answer, but what do you mean by RDTSC? I have a freeware steam locomotive simulation programme that Cheers Bryan -- br...@battewell.freeserve.co.uk |
Dr John Stockto
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?JRS: In article <372A9BA2.74E6...@bigfoot.de> of Sat, 1 May 1999 08:13:54 in news:comp.lang.pascal.borland, Arno Fehm <af...@bigfoot.de> wrote: Quote>Use a simple timer like meml[seg0040:$006C]! It is increased 18.2 times procedure is called when $40:$6C is $1800AF. Actually, on second thoughts, you get a wrong delay the first time (likely infinite), with that order of statements. I suggest that one should loop, counting *changes* in (byte or word) -- |
Arno Feh
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to detect machine speed in TP7?QuoteDr John Stockton wrote: perfect reliable solution, that probably only had confused him, but an idea or hint! But of course you are right! regards ------------------------------------------------------------------------ |