| Total Complexity | 10 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 82.35% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class HRTimer extends AbstractTimer |
||
| 9 | { |
||
| 10 | public const VALUE_COEFFICIENT = HRTIMER_VALUE_COEFFICIENT; |
||
| 11 | |||
| 12 | /** @var bool */ |
||
| 13 | public static $ignoreVersionRestrictions = false; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return int |
||
| 17 | */ |
||
| 18 | 14 | public function current(): int |
|
| 19 | { |
||
| 20 | return |
||
| 21 | 14 | (int)hrtime(true); |
|
| 22 | } |
||
| 23 | |||
| 24 | 18 | protected function checkEnvironment(): void |
|
| 39 | } |
||
| 40 | // @codeCoverageIgnoreEnd |
||
| 41 | 18 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param int $start |
||
| 45 | * @param int $stop |
||
| 46 | */ |
||
| 47 | 3 | protected function assertStartAndStop($start, $stop): void |
|
| 62 | } |
||
| 63 | 3 | } |
|
| 66 |