yii\log\Logger::getElapsedTime PHP Method

getElapsedTime() public method

This method calculates the difference between now and the timestamp defined by constant YII_BEGIN_TIME which is evaluated at the beginning of BaseYii class file.
public getElapsedTime ( ) : float
return float the total elapsed time in seconds for current request.
    public function getElapsedTime()
    {
        return microtime(true) - YII_BEGIN_TIME;
    }