From e41d6361221a30ca9d996cde7591111e626b7e1c Mon Sep 17 00:00:00 2001 From: supahgreg Date: Thu, 9 Oct 2025 02:49:56 +0000 Subject: Remove dev dependencies and update the rest. --- vendor/phpunit/php-timer/src/Timer.php | 40 ---------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 vendor/phpunit/php-timer/src/Timer.php (limited to 'vendor/phpunit/php-timer/src/Timer.php') diff --git a/vendor/phpunit/php-timer/src/Timer.php b/vendor/phpunit/php-timer/src/Timer.php deleted file mode 100644 index 0917109be..000000000 --- a/vendor/phpunit/php-timer/src/Timer.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace SebastianBergmann\Timer; - -use function array_pop; -use function hrtime; - -final class Timer -{ - /** - * @psalm-var list - */ - private $startTimes = []; - - public function start(): void - { - $this->startTimes[] = (float) hrtime(true); - } - - /** - * @throws NoActiveTimerException - */ - public function stop(): Duration - { - if (empty($this->startTimes)) { - throw new NoActiveTimerException( - 'Timer::start() has to be called before Timer::stop()' - ); - } - - return Duration::fromNanoseconds((float) hrtime(true) - array_pop($this->startTimes)); - } -} -- cgit v1.2.3-54-g00ecf