How to get the mhz on the processor

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
User avatar
SebMcClouth
Veteran
Posts: 240
Joined: Fri Apr 29, 2005 2:20 am
Location: Inside the Matrix

How to get the mhz on the processor

Post by SebMcClouth »

Does anyone know how I can get this? Or ghz if you please.

Grtz
Seb
I know why you're here. I know what you've been doing... why you hardly sleep, why you live alone, and why night after night, you sit by your computer...<br>
Unfortunately, no one can be told what Qbinux is. You have to see it for yourself.
Patz QuickBASIC Creations
Veteran
Posts: 399
Joined: Wed Mar 02, 2005 9:01 pm
Location: Nashville, Tennessee
Contact:

Post by Patz QuickBASIC Creations »

Don't know if you want the processor speed or FSB speed...
But this library can give you the approximate processor speed:

http://www.phatcode.net/downloads.php?id=190

Good Luck!
User avatar
SebMcClouth
Veteran
Posts: 240
Joined: Fri Apr 29, 2005 2:20 am
Location: Inside the Matrix

Post by SebMcClouth »

Thx...
I know why you're here. I know what you've been doing... why you hardly sleep, why you live alone, and why night after night, you sit by your computer...<br>
Unfortunately, no one can be told what Qbinux is. You have to see it for yourself.
User avatar
SebMcClouth
Veteran
Posts: 240
Joined: Fri Apr 29, 2005 2:20 am
Location: Inside the Matrix

Post by SebMcClouth »

I use my own libraries etc. I cannot find the frequency anywhere... annoying..

grtz
Seb
I know why you're here. I know what you've been doing... why you hardly sleep, why you live alone, and why night after night, you sit by your computer...<br>
Unfortunately, no one can be told what Qbinux is. You have to see it for yourself.
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

Seb,

I'm running XP, but this should work on other Windows versions.

1) Get into the Control Panel.

2) Click on "System".

3) There's a little section there called "Computer" which contains the processor type, processor speed, and the number of megs of RAM.

*****
If you are ahead of me, lead.
If you are behind me, follow.
If you are not doing anything,
Get out of the way.
Seb McClouth

Post by Seb McClouth »

Browser booted me, lost me my password... anywayz...

I need to detect it for Qbinux...


grtz
Seb
Patz QuickBASIC Creations
Veteran
Posts: 399
Joined: Wed Mar 02, 2005 9:01 pm
Location: Nashville, Tennessee
Contact:

Post by Patz QuickBASIC Creations »

It should work. Run the QCPU.EXE file included with it to run as a test.
If it works, load the lib's into QB (only 4.5) and run the test program (QCPU.BAS) that comes with it.
If THAT works, merge it with your library and keep the same FUNC's from the QCPU.BAS program to use in QBinux.

If one or more doesn't work, you're screwed until you can make one :wink:
Post Reply