Ticket #1400: sfTimer.class.php.patch
| File sfTimer.class.php.patch, 0.6 kB (added by gucky, 2 years ago) |
|---|
-
sfTimer.class.php
old new 45 45 46 46 /** 47 47 * Stops the timer and add the amount of time since the start to the total time. 48 * 49 * @return integer Time spend for the last call. 48 50 */ 49 51 public function addTime() 50 52 { 51 $this->totalTime += microtime(true) - $this->startTime; 53 $spend = microtime(true) - $this->startTime; 54 $this->totalTime += $spend; 52 55 ++$this->calls; 56 return $spend; 53 57 } 54 58 55 59 /**