Orden
This commit is contained in:
@ -16,7 +16,6 @@ class Benchmark
|
|||||||
echo implode(PHP_EOL, self::$queue), PHP_EOL;
|
echo implode(PHP_EOL, self::$queue), PHP_EOL;
|
||||||
self::$queue = [];
|
self::$queue = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function execute(callable $callback, ?array $args = null, ?string $description = null): mixed
|
public static function execute(callable $callback, ?array $args = null, ?string $description = null): mixed
|
||||||
{
|
{
|
||||||
if (null === $description) {
|
if (null === $description) {
|
||||||
@ -36,7 +35,6 @@ class Benchmark
|
|||||||
self::$queue[$i] .= sprintf(" in %.2f seconds", $end - $start);
|
self::$queue[$i] .= sprintf(" in %.2f seconds", $end - $start);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCallableName(callable $callable): string
|
public static function getCallableName(callable $callable): string
|
||||||
{
|
{
|
||||||
return match (true) {
|
return match (true) {
|
||||||
|
Reference in New Issue
Block a user