Code Duplication    Length = 4-4 lines in 2 locations

dev/Profiler.php 2 locations

@@ 113-116 (lines=4) @@
110
	public function stopTimer($name){
111
		$this->trace.="stop    $name\n";
112
		$this->endTime[$name] = $this->getMicroTime();
113
		if (!array_key_exists($name, $this->running))
114
			$this->running[$name] = $this->elapsedTime($name);
115
		else
116
			$this->running[$name] += $this->elapsedTime($name);
117
		$this->cur_timer=array_pop($this->stack);
118
		$this->__resumeTimer($this->cur_timer);
119
	}
@@ 234-237 (lines=4) @@
231
	public function __suspendTimer($name){
232
		$this->trace.="suspend $name\n";
233
		$this->endTime[$name] = $this->getMicroTime();
234
		if (!array_key_exists($name, $this->running))
235
			$this->running[$name] = $this->elapsedTime($name);
236
		else
237
			$this->running[$name] += $this->elapsedTime($name);
238
	}
239
}
240