protected static function get_real_timeout(int $timeout) : int {
        global $CFG;
        if (!empty($CFG->behat_increasetimeout)) {
            return $timeout * $CFG->behat_increasetimeout;
        } else {
            return $timeout;
        }
    }
protected static function get_real_timeout(int $timeout) : int {
        global $CFG;
        if (!empty($CFG->behat_increasetimeout)) {
            return $timeout * $CFG->behat_increasetimeout;
        } else {
            return $timeout;
        }
    }
protected static function get_real_timeout ( int $ timeout ) : int { global $ CFG ; if ( ! empty ( $ CFG -> behat_increasetimeout ) ) { return $ timeout * $ CFG -> behat_increasetimeout ; } else { return $ timeout ; } }
Gets the required timeout in seconds.

@param int $timeout One of the TIMEOUT constants
@return int Actual timeout (in seconds)
Gets the required timeout in seconds .