We don't have any macro time setting on web.config but we can set timeout particular macro with the following syntax:
{% GetDocumentUrl()|(timeout)2000 %}
Refer https://docs.xperience.io/k12sp/macro-expressions/macro-syntax
https://devnet.kentico.com/search?searchtext=macro+timeout&searchmode=anyword