public function elapsedTime(int $round = null)
    {
        $time = $this->end - $this->start;
        if (!is_null($round)) {
            $time = round($time, $round);
        }

        return (float) $time;
    }
public function elapsedTime(int $round = null)
    {
        $time = $this->end - $this->start;
        if (!is_null($round)) {
            $time = round($time, $round);
        }

        return (float) $time;
    }
public function elapsedTime ( int $ round = null ) { $ time = $ this -> end - $ this -> start ; if ( ! is_null ( $ round ) ) { $ time = round ( $ time , $ round ) ; } return ( float ) $ time ; }
Get the elapsed time.

@param (int) $round round.

@since 2.0.0

@return void
Get the elapsed time .