| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | class Timer extends AbstractTimer |
||
| 14 | { |
||
| 15 | 19 | public function __construct(?string $name = null, bool $start = true) |
|
| 21 | ); |
||
| 22 | 19 | } |
|
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @return float |
||
| 27 | */ |
||
| 28 | 16 | public function current(): float |
|
| 29 | { |
||
| 30 | return |
||
|
|
|||
| 31 | 16 | microtime(true); |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param float $start |
||
| 36 | * @param float $stop |
||
| 37 | */ |
||
| 38 | 4 | protected function assertStartAndStop($start, $stop): void |
|
| 42 | 2 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param float $start |
||
| 46 | */ |
||
| 47 | 3 | protected function assertStart(/** @scrutinizer ignore-unused */ float $start): void |
|
| 48 | { |
||
| 49 | // Intentionally left blank |
||
| 50 | 3 | } |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param float $stop |
||
| 54 | */ |
||
| 55 | 2 | protected function assertStop(/** @scrutinizer ignore-unused */ float $stop): void |
|
| 57 | // Intentionally left blank |
||
| 58 | 2 | } |
|
| 59 | } |
||
| 60 |