| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | final class MetricCollector implements CollectorInterface |
||
| 17 | { |
||
| 18 | private float $startTime; |
||
| 19 | 2 | ||
| 20 | public function __construct() |
||
| 21 | 2 | { |
|
| 22 | 2 | $this->startTime = hrtime(true) * 1e-9; |
|
| 23 | } |
||
| 24 | 2 | ||
| 25 | public function collect(): Observable |
||
| 40 | 1 | ) |
|
| 41 | ), |
||
| 42 | 1 | ]); |
|
| 43 | } |
||
| 44 | |||
| 45 | public function cancel(): void |
||
| 49 |