mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
run-tests: drop hrtime() polyfill (#16677)
This commit is contained in:
@@ -784,23 +784,6 @@ function main(): void
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists("hrtime")) {
|
||||
/**
|
||||
* @return array|float|int
|
||||
*/
|
||||
function hrtime(bool $as_num = false)
|
||||
{
|
||||
$t = microtime(true);
|
||||
|
||||
if ($as_num) {
|
||||
return $t * 1000000000;
|
||||
}
|
||||
|
||||
$s = floor($t);
|
||||
return [0 => $s, 1 => ($t - $s) * 1000000000];
|
||||
}
|
||||
}
|
||||
|
||||
function verify_config(string $php): void
|
||||
{
|
||||
if (empty($php) || !file_exists($php)) {
|
||||
|
||||
Reference in New Issue
Block a user