| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function getExecutionTimeInSeconds(): float |
||
| 57 | { |
||
| 58 | if (!$this->timeStart || !$this->timeStop) { |
||
| 59 | throw new TimerException('Execution time cannot be calculated'); |
||
| 60 | } |
||
| 61 | $executionTime = $this->timeStop - $this->timeStart; |
||
| 62 | $this->timeStart = 0.0; |
||
| 63 | $this->timeStop = 0.0; |
||
| 64 | return $executionTime; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |