src/mako/chrono/stopwatch/Stopwatch.php
public function getElapsedTime(): float
	{
		$last = end($this->laps);

		return ($last->isRunning() ? microtime(true) : $last->getStopTime()) - $this->laps[0]->getStartTime();
	}
public function getElapsedTime(): float
	{
		$last = end($this->laps);

		return ($last->isRunning() ? microtime(true) : $last->getStopTime()) - $this->laps[0]->getStartTime();
	}
public function getElapsedTime ( ) : float { $ last = end ( $ this -> laps ) ; return ( $ last -> isRunning ( ) ? microtime ( true ) : $ last -> getStopTime ( ) ) - $ this -> laps [ 0 ] -> getStartTime ( ) ; }
Get elapsed time.

@return float
Get elapsed time .