1 | <?php |
||
20 | class Timer implements TimerInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var float |
||
24 | */ |
||
25 | private $timeStart = 0.0; |
||
26 | |||
27 | /** |
||
28 | * @var float |
||
29 | */ |
||
30 | private $timeStop = 0.0; |
||
31 | |||
32 | /** |
||
33 | * @return void |
||
34 | */ |
||
35 | public function startTimer(): void |
||
39 | |||
40 | /** |
||
41 | * @return void |
||
42 | * @throws TimerException |
||
43 | */ |
||
44 | public function stopTimer(): void |
||
51 | |||
52 | /** |
||
53 | * @return float |
||
54 | * @throws TimerException |
||
55 | */ |
||
56 | public function getExecutionTimeInSeconds(): float |
||
66 | } |
||
67 |