🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #158

How to detect CPU type and speed from C?

#158
From: Keith Bennett
Date: Wed, 15 May 1996 00:00
14 lines
1002 bytes

Is there a way (within a C program) to detect which CPU is installed in a
system and what the clock speed is?  Is there any public domain source
code available for this?

Thanks.
- Keith

-- 
--------------------------------------------------------------------------
Keith Bennett                             Bennett Business Solutions, Inc.
Silver Spring, MD USA                     OS/2 & DOS Software Development
kbennett@cpcug.org                        (301) 871-7696
Technical Details
Message-ID: <4ndisn$dtm@cpcug.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cd94,4048d0646749033,start
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 11307a,4048d0646749033,start
X-Google-Attributes: gid11307a,public
From: kbennett@cpcug.org (Keith Bennett)
Subject: How to detect CPU type and speed from C?
Date: 1996/05/15
Message-ID: <4ndisn$dtm@cpcug.org>
X-Deja-AN: 155012249
organization: Express Access Online Communications USA: 800-969-9090
newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l