src/Profiler/Profiler.php
/**
	 * Stop an individual timer
	 * Restart the timer that was running before this one
	 *
	 * @param string $name name of the timer
	 * @return void
	 */
Stop an individual timer
Restart the timer that was running before this one

@param string $name name of the timer
@return void
Stop an individual timer Restart the timer that was running before this one @param string $name name of the timer @return void
public function stop(string $name): void
	{
		if (!$this->isVoided()) {
			$this->trace          .= "stop    $name\n";
			$this->endTime[$name] = microtime(true);
			if (!array_key_exists($name, $this->running)) {
				$this->running[$name] = $this->elapsedTime($name);
			}
			else {
				$this->running[$name] += $this->elapsedTime($name);
			}
			$this->cur_timer = array_pop($this->stack);
			$this->resumeTimer($this->cur_timer);
		}
	}
public function stop ( string $ name ) : void { if ( ! $ this -> isVoided ( ) ) { $ this -> trace .= " stop     $ name \n " ; $ this -> endTime [ $ name ] = microtime ( true ) ; if ( ! array_key_exists ( $ name , $ this -> running ) ) { $ this -> running [ $ name ] = $ this -> elapsedTime ( $ name ) ; } else { $ this -> running [ $ name ] += $ this -> elapsedTime ( $ name ) ; } $ this -> cur_timer = array_pop ( $ this -> stack ) ; $ this -> resumeTimer ( $ this -> cur_timer ) ; } }
Stop an individual timer
 Restart the timer that was running before this one
Stop an individual timer Restart the timer that was running before this one