Manual Reference Pages - SYS::CPU (3)
Sys::CPU - Perl extension for getting CPU information. Currently only number of CPUs supported.
$number_of_cpus = Sys::CPU::cpu_count();
printf("I have %d CPUs\n",$number_of_cpus);
print " Speed : ",Sys::CPU::cpu_clock(),"\n";
print " Type : ",Sys::CPU::cpu_type(),"\n";
In responce to a post on perlmonks.org, a module for counting the number of CPUs on a
system. Support has now also been added for type of CPU and clock speed. While much of the
code is from UNIX::Processors, win32 support has been added (but not tested).
v0.45 - Corrected solaris support (Thanks Cloyce)
None by default.
|perl v5.20.3 ||CPU (3) ||2010-08-16 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.