Changeset 3411
- Timestamp:
- 02/06/07 09:17:38 (2 years ago)
- Files:
-
- branches/1.0/lib/debug/sfTimer.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/debug/sfTimer.class.php
r3211 r3411 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 57 return $spend; 53 58 } 54 59