Skip to content

Commit cda67fb

Browse files
authored
run-tests: drop hrtime() polyfill (#16677)
1 parent 836bd22 commit cda67fb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

run-tests.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -784,23 +784,6 @@ function main(): void
784784
}
785785
}
786786

787-
if (!function_exists("hrtime")) {
788-
/**
789-
* @return array|float|int
790-
*/
791-
function hrtime(bool $as_num = false)
792-
{
793-
$t = microtime(true);
794-
795-
if ($as_num) {
796-
return $t * 1000000000;
797-
}
798-
799-
$s = floor($t);
800-
return [0 => $s, 1 => ($t - $s) * 1000000000];
801-
}
802-
}
803-
804787
function verify_config(string $php): void
805788
{
806789
if (empty($php) || !file_exists($php)) {

0 commit comments

Comments
 (0)