15 lines
476 B
PHP
15 lines
476 B
PHP
<?php
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
use NoccyLabs\Linux\Cpu\Cpu;
|
|
|
|
$cpu = new Cpu();
|
|
|
|
printf("Number of CPUs/cores: %d\n", $cpu->getNumCpus());
|
|
printf("Current governor: %s\n", $cpu->getCurrentGovernor());
|
|
printf("Available governors: %s\n", join(", ", $cpu->getAvailableGovernors()));
|
|
printf("Current frequency: %d\n", $cpu->getCurrentFrequency());
|
|
printf("Available frequencies: %s\n", join(", ", $cpu->getAvailableFrequencies()));
|
|
|