Files
pest/src/Support/Cpu.php
nuno maduro 21efbc3107 wip
2026-05-01 22:55:38 +01:00

19 lines
280 B
PHP

<?php
declare(strict_types=1);
namespace Pest\Support;
use Fidry\CpuCoreCounter\CpuCoreCounter;
/**
* @internal
*/
final class Cpu
{
public static function cores(int $fallback = 4): int
{
return (new CpuCoreCounter)->getCountWithFallback($fallback);
}
}