Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class Timer extends AbstractTimer |
||
6 | { |
||
7 | /** |
||
8 | * @return float |
||
9 | */ |
||
10 | 39 | public function current(): float |
|
14 | } |
||
15 | |||
16 | /** |
||
17 | * @param float $start |
||
18 | * @param float $stop |
||
19 | */ |
||
20 | 17 | protected function assertStartAndStop($start, $stop): void |
|
21 | { |
||
22 | 17 | $this->assertStart($start); |
|
23 | 16 | $this->assertStop($stop); |
|
24 | 15 | } |
|
25 | |||
26 | /** |
||
27 | * @param float $start |
||
28 | */ |
||
29 | 16 | protected function assertStart(/** @scrutinizer ignore-unused */ float $start): void |
|
30 | { |
||
31 | // Intentionally left blank |
||
32 | 16 | } |
|
33 | |||
34 | /** |
||
35 | * @param float $stop |
||
36 | */ |
||
37 | 15 | protected function assertStop(/** @scrutinizer ignore-unused */ float $stop): void |
|
39 | // Intentionally left blank |
||
40 | 15 | } |
|
41 | } |
||
42 |