 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mike Glazer Guest
|
Posted: Tue Dec 02, 2003 12:18 pm Post subject: System Speed |
|
|
Is there some code that one can use to return the processor speed of a
computer?
Mike Glazer
Oxford
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Tue Dec 02, 2003 12:53 pm Post subject: Re: System Speed |
|
|
"Mike Glazer" <glazer (AT) physics (DOT) ox.ac.uk> wrote
| Quote: | Is there some code that one can use to return the processor
speed of a computer?
|
My Registry has a tell-tale value of $000003e8 (1000) in key
HKLM/Hardware/Description/System/CentralProcessor/0/~MHz.
Found, of course, by searching the Registry for "MHz".
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
Dodgy Guest
|
Posted: Tue Dec 02, 2003 2:45 pm Post subject: Re: System Speed |
|
|
On Tue, 2 Dec 2003 13:53:47 +0100, "Maarten Wiltink"
<maarten (AT) kittensandcats (DOT) net> waffled on about something:
| Quote: | "Mike Glazer" <glazer (AT) physics (DOT) ox.ac.uk> wrote in message
news:bqhvun$g7k$1 (AT) news (DOT) ox.ac.uk...
Is there some code that one can use to return the processor
speed of a computer?
My Registry has a tell-tale value of $000003e8 (1000) in key
HKLM/Hardware/Description/System/CentralProcessor/0/~MHz.
Found, of course, by searching the Registry for "MHz".
Groetjes,
Maarten Wiltink
|
Ahhh, but... Mine shows $000003ea (1002), and I believe after a reboot
it could show something else...
Unfortunately it's a calculated value, so tends to be +- a few %.
If the OP can actually find something that will give him spot on (aka
what the user expects) speeds, I'd be very grateful if he would share
it, I've been trying to solve this one on and off for months.
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
|
|
| Back to top |
|
 |
Jud McCranie Guest
|
Posted: Tue Dec 02, 2003 6:06 pm Post subject: Re: System Speed |
|
|
On Tue, 2 Dec 2003 12:18:47 -0000, "Mike Glazer"
<glazer (AT) physics (DOT) ox.ac.uk> wrote:
| Quote: | Is there some code that one can use to return the processor speed of a
computer?
|
The JEDI project has stuff for that, and more. See their JCLsysInfo
unit http://www.delphi-jedi.org/
|
|
| Back to top |
|
 |
Dr John Stockton Guest
|
Posted: Tue Dec 02, 2003 10:36 pm Post subject: Re: System Speed |
|
|
JRS: In article <bqhvun$g7k$1 (AT) news (DOT) ox.ac.uk>, seen in news:comp.lang.pa
scal.delphi.misc, Mike Glazer <glazer (AT) physics (DOT) ox.ac.uk> posted at Tue, 2
Dec 2003 12:18:47 :-
| Quote: | Is there some code that one can use to return the processor speed of a
computer?
|
My tz-check.pas, written in Delphi 3, available via below, measures it;
see the last paragraph of output, and where RDTSC appears in the source.
The source is under 200 lines total, and the relevant part is easily
located as above.
If you want the exact "advertised" speed, you will have to
(a) find the nearest in a table of values,
(b) allow for Athlons, where IIRC the advertised speed is not the
clock speed.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
|
|
| Back to top |
|
 |
Terry Russell Guest
|
Posted: Wed Dec 03, 2003 12:31 am Post subject: Re: System Speed |
|
|
"Dodgy" <Dodgy (AT) earth (DOT) planet.universe> wrote
| Quote: |
Ahhh, but... Mine shows $000003ea (1002), and I believe after a reboot
it could show something else...
|
and the 2 on this desk show no Mhz entry at all
| Quote: |
Unfortunately it's a calculated value, so tends to be +- a few %.
|
average it, while waiting for user input
| Quote: | If the OP can actually find something that will give him spot on (aka
what the user expects) speeds, I'd be very grateful if he would share
it, I've been trying to solve this one on and off for months.
|
you have amost identical boxes except one has 256k cache
one has 512k cache
they rate 3000 and 2700 aardvarkrotations per minute
hardware/bios is hardware specific, software will be wrong
except
writeln('what speed does the bios report?');
readln(speed);
writeln('this machine is '+speed);
|
|
| Back to top |
|
 |
Dodgy Guest
|
Posted: Wed Dec 03, 2003 12:03 pm Post subject: Re: System Speed |
|
|
On Wed, 3 Dec 2003 11:01:16 +1030, "Terry Russell"
<trochilus (AT) GREENEGGSoptusnet (DOT) com.au> waffled on about something:
| Quote: | "Dodgy" <Dodgy (AT) earth (DOT) planet.universe> wrote in message
news:c69psvkp2on9fjdbp9b3v8dspg4ta38o4i (AT) 4ax (DOT) com...
Ahhh, but... Mine shows $000003ea (1002), and I believe after a reboot
it could show something else...
and the 2 on this desk show no Mhz entry at all
Unfortunately it's a calculated value, so tends to be +- a few %.
average it, while waiting for user input
If the OP can actually find something that will give him spot on (aka
what the user expects) speeds, I'd be very grateful if he would share
it, I've been trying to solve this one on and off for months.
you have amost identical boxes except one has 256k cache
one has 512k cache
they rate 3000 and 2700 aardvarkrotations per minute
hardware/bios is hardware specific, software will be wrong
except
writeln('what speed does the bios report?');
readln(speed);
writeln('this machine is '+speed);
|
LOL!
Although I think you should do some range checking on your input
string.
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
|
|
| Back to top |
|
 |
Nicholas Sherlock Guest
|
Posted: Wed Dec 03, 2003 6:37 pm Post subject: Re: System Speed |
|
|
Dodgy wrote:
| Quote: | On Wed, 3 Dec 2003 11:01:16 +1030, "Terry Russell"
[email]trochilus (AT) GREENEGGSoptusnet (DOT) com.au[/email]> waffled on about something:
writeln('what speed does the bios report?');
readln(speed);
writeln('this machine is '+speed);
LOL!
Although I think you should do some range checking on your input
string.
|
writeln('What speed is your CPU?');
readln(speed);
if pos('MB',uppercase(speed))>0 then
raise exception.create('The system has experienced an unrecoverable
ID-ten-T error - please contact your site administrator so he can have a
good laugh at your expense');
writeln('This machine is '+speed);
Cheers,
Nicholas Sherlock
|
|
| Back to top |
|
 |
Bruce Roberts Guest
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Wed Dec 03, 2003 11:05 pm Post subject: Re: System Speed |
|
|
"Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote
Many interesting and horrible things in that document.
SpeedStep. What does that do again?
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
Dodgy Guest
|
Posted: Thu Dec 04, 2003 10:14 am Post subject: Re: System Speed |
|
|
On Thu, 4 Dec 2003 07:37:29 +1300, "Nicholas Sherlock"
<n_sherlock (AT) hotmail (DOT) com> waffled on about something:
| Quote: | Dodgy wrote:
On Wed, 3 Dec 2003 11:01:16 +1030, "Terry Russell"
[email]trochilus (AT) GREENEGGSoptusnet (DOT) com.au[/email]> waffled on about something:
writeln('what speed does the bios report?');
readln(speed);
writeln('this machine is '+speed);
LOL!
Although I think you should do some range checking on your input
string.
writeln('What speed is your CPU?');
readln(speed);
if pos('MB',uppercase(speed))>0 then
raise exception.create('The system has experienced an unrecoverable
ID-ten-T error - please contact your site administrator so he can have a
good laugh at your expense');
writeln('This machine is '+speed);
Cheers,
Nicholas Sherlock
|
You have users that give CPU speed in MB too? For a while there I
thought I was being punished for something in a previous life!
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
|
|
| Back to top |
|
 |
Dodgy Guest
|
Posted: Thu Dec 04, 2003 10:15 am Post subject: Re: System Speed |
|
|
On Thu, 4 Dec 2003 00:05:27 +0100, "Maarten Wiltink"
<maarten (AT) kittensandcats (DOT) net> waffled on about something:
| Quote: | "Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote in message
news:R0szb.260$%i5.13652 (AT) news20 (DOT) bellglobal.com...
"Mike Glazer" <glazer (AT) physics (DOT) ox.ac.uk> wrote in message
news:bqhvun$g7k$1 (AT) news (DOT) ox.ac.uk...
Is there some code that one can use to return the processor speed
of a computer?
See http://developer.intel.com/design/xeon/applnots/24161824.pdf.
In particular example 6.
Many interesting and horrible things in that document.
SpeedStep. What does that do again?
|
Something my laptop does that seems to have pitifully little effect on
battery life.
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Thu Dec 04, 2003 12:34 pm Post subject: Re: System Speed |
|
|
"Dodgy" <Dodgy (AT) earth (DOT) planet.universe> wrote
| Quote: | On Thu, 4 Dec 2003 00:05:27 +0100, "Maarten Wiltink"
[email]maarten (AT) kittensandcats (DOT) net[/email]> waffled on about something:
"Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote in message
news:R0szb.260$%i5.13652 (AT) news20 (DOT) bellglobal.com...
"Mike Glazer" <glazer (AT) physics (DOT) ox.ac.uk> wrote in message
news:bqhvun$g7k$1 (AT) news (DOT) ox.ac.uk...
See http://developer.intel.com/design/xeon/applnots/24161824.pdf.
In particular example 6.
Many interesting and horrible things in that document.
SpeedStep. What does that do again?
Something my laptop does that seems to have pitifully little effect
on battery life.
|
I reiterate:
| Quote: | Is there some code that one can use to return the processor speed
of a computer?
|
Is asking for "the" processor speed the next incarnation of asking
for "the" IP address?
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
Bruce Roberts Guest
|
Posted: Thu Dec 04, 2003 4:35 pm Post subject: Re: System Speed |
|
|
"Dodgy" <Dodgy (AT) earth (DOT) planet.universe> wrote
| Quote: | Something my laptop does that seems to have pitifully little effect on
battery life.
|
But it does allow Intel to charge a hefty premium for the notebook
specialized CPU .
The really nutty thing about reducing CPU speed is that it really only makes
sense if the machine is idle, i.e. sitting in the o/s idle loop. When a user
is working, reducing the speed may extend battery life, but its also going
to extend the user's time to completion - and probably raise their level of
frustration.
|
|
| Back to top |
|
 |
Dodgy Guest
|
Posted: Thu Dec 04, 2003 5:58 pm Post subject: Re: System Speed |
|
|
On Thu, 4 Dec 2003 13:34:30 +0100, "Maarten Wiltink"
<maarten (AT) kittensandcats (DOT) net> waffled on about something:
| Quote: | "Dodgy" <Dodgy (AT) earth (DOT) planet.universe> wrote in message
news:692usv84i013fvlbej2fflpvogk4rncr0a (AT) 4ax (DOT) com...
On Thu, 4 Dec 2003 00:05:27 +0100, "Maarten Wiltink"
[email]maarten (AT) kittensandcats (DOT) net[/email]> waffled on about something:
"Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote in message
news:R0szb.260$%i5.13652 (AT) news20 (DOT) bellglobal.com...
"Mike Glazer" <glazer (AT) physics (DOT) ox.ac.uk> wrote in message
news:bqhvun$g7k$1 (AT) news (DOT) ox.ac.uk...
See http://developer.intel.com/design/xeon/applnots/24161824.pdf.
In particular example 6.
Many interesting and horrible things in that document.
SpeedStep. What does that do again?
Something my laptop does that seems to have pitifully little effect
on battery life.
I reiterate:
Is there some code that one can use to return the processor speed
of a computer?
Is asking for "the" processor speed the next incarnation of asking
for "the" IP address?
|
Possibly, but maybe even worse... At least there is an answer to the
IP question... Nobody as yet has found a way of getting a 3.06Ghz P4
to report 3.06 and a 3Ghz P4 to report 3Ghz. These two are a
particular favourite of mine. Being only 2% apart is more than enough
play for the registry ~Mhz value code to muddle them up when using a
nearest fit routine.
And let's not even venue into AMD land where the value expected by the
user will have pitifully little to do with the Mhz of the chip!
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|