Elastica\Response::getEngineTime PHP Method

getEngineTime() public method

Time request took.
public getEngineTime ( ) : integer
return integer Time request took
    public function getEngineTime()
    {
        $data = $this->getData();
        if (!isset($data['took'])) {
            throw new NotFoundException('Unable to find the field [took]from the response');
        }
        return $data['took'];
    }