Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: "Duga Chernobyl" Newsgroups: comp.lang.c++,alt.comp.lang.c++.help Subject: Re: cpu temperature Date: Sun, 28 Aug 2011 15:24:43 +0200 Organization: ATMAN - ATM S.A. Lines: 20 Message-ID: References: <%05Hp.42497$5f.3444@newsfe19.iad> NNTP-Posting-Host: user-109-243-100-255.play-internet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: node2.news.atman.pl 1314537883 1860 109.243.100.255 (28 Aug 2011 13:24:43 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Sun, 28 Aug 2011 13:24:43 +0000 (UTC) User-Agent: Opera Mail/11.50 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9399 Dnia 28-08-2011 o 15:15:55 Wouter Snels napisa=C5=82(= a): > Op 06-06-11 15:57, gope@gope.com schreef: >> I'm looking for a exemple off c++ reading temperature > This should depend on which os you use, .. example for freebsd you mig= ht > look into sysctl, .. although can't seem to find any api for C/C++ > > check http://forums.freebsd.org/archive/index.php/t-882.html there are= > some examples which the command shows the temperature. > > don't think there is a cross platform lib out there that does this. > > Regards, .. I think, you must get acpi api. F.e. in linux, conky can read the = temperature of cpu, try read his source code