src/Profiler/Profiler.php
/**
	 * Start an individual timer
	 * This will pause the running timer and place it on a stack.
	 *
	 * @param string $name name of the timer
	 * @param string optional $desc description of the timer
	 * @return void
	 */
Start an individual timer
This will pause the running timer and place it on a stack.

@param string $name name of the timer
@param string optional $desc description of the timer
@return void
Start an individual timer This will pause the running timer and place it on a stack . @param string $name name of the timer @param string optional $desc description of the timer @return void
public function start(string $name, $desc = ""): void
	{
		if (!$this->isVoided()) {
			$this->trace .= "start   $name\n";
			$n           = array_push($this->stack, $this->cur_timer);
			$this->suspendTimer($this->stack[$n - 1]);
			$this->startTime[$name]   = microtime(true);
			$this->cur_timer          = $name;
			$this->description[$name] = $desc;
			if (!array_key_exists($name, $this->count)) {
				$this->count[$name] = 1;
			}
			else {
				$this->count[$name]++;
			}
		}
	}
public function start ( string $ name , $ desc = " " ) : void { if ( ! $ this -> isVoided ( ) ) { $ this -> trace .= " start    $ name \n " ; $ n = array_push ( $ this -> stack , $ this -> cur_timer ) ; $ this -> suspendTimer ( $ this -> stack [ $ n - 1 ] ) ; $ this -> startTime [ $ name ] = microtime ( true ) ; $ this -> cur_timer = $ name ; $ this -> description [ $ name ] = $ desc ; if ( ! array_key_exists ( $ name , $ this -> count ) ) { $ this -> count [ $ name ] = 1 ; } else { $ this -> count [ $ name ] ++ ; } } }
Start an individual timer
 This will pause the running timer and place it on a stack.
Start an individual timer This will pause the running timer and place it on a stack .