| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class ATimer implements ITimer |
||
| 17 | { |
||
| 18 | protected const COEFFICIENT = 1e-6; // for milliseconds |
||
| 19 | protected Closure $timeFunction; |
||
| 20 | |||
| 21 | public function __construct( |
||
| 30 | } |
||
| 31 | |||
| 32 | private static function assertTimeFunction(?Closure $timeFunction): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | public function elapsed(): float |
||
| 58 |