GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYS::CPU (3)

.ds Aq ’

NAME

Sys::CPU - Perl extension for getting CPU information. Currently only number of CPU’s supported.

CONTENTS

SYNOPSIS



  use Sys::CPU;
 
  $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";



DESCRIPTION

In responce to a post on perlmonks.org, a module for counting the number of CPU’s 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)

    EXPORT

None by default.

AUTHOR

MZSanford

MAINTENANCE

Marc Koderer

LICENSE

SEE ALSO

perl(1), sysconf(3)
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CPU (3) 2010-08-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.