@@ -13,15 +13,15 @@ |
||
13 | 13 | public $avgPerformance = ''; |
14 | 14 | public $runTime = 0; |
15 | 15 | |
16 | - public function __construct(){ |
|
16 | + public function __construct() { |
|
17 | 17 | $this->startTime = microtime(true); |
18 | 18 | } |
19 | 19 | |
20 | - public function work($counterAddFloat = 1){ |
|
21 | - $this->counter = $this->counter + (float)$counterAddFloat; |
|
20 | + public function work($counterAddFloat = 1) { |
|
21 | + $this->counter = $this->counter+(float)$counterAddFloat; |
|
22 | 22 | } |
23 | - public function endWork(){ |
|
24 | - $this->runTime = microtime(true) - $this->startTime; |
|
23 | + public function endWork() { |
|
24 | + $this->runTime = microtime(true)-$this->startTime; |
|
25 | 25 | $this->avgPerformance = number_format(($this->counter/$this->runTime), 2, '.', ''); |
26 | 26 | } |
27 | 27 |