Files
oficial/app/tests/performance/AbstractPerformance.php

17 lines
348 B
PHP
Raw Normal View History

2025-04-29 22:25:32 -04:00
<?php
namespace ProVM\Performance;
use PHPUnit\Framework\TestCase;
abstract class AbstractPerformance extends TestCase
{
protected float $startTime;
protected function start(): void
{
$this->startTime = microtime(true);
}
protected function end(): float
{
return microtime(true) - $this->startTime;
}
}