Display pre-template load time in footer.

This commit is contained in:
flash 2019-04-10 20:20:35 +02:00
parent d9aab7078f
commit 643ea59ee8

View file

@ -15,6 +15,7 @@
{% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %}
/ SQL Queries: {{ sql_query_count()|number_format }}
/ Took: {{ startup_time()|number_format(5) }} seconds
/ Load: {{ (startup_time() - startup_time(constant('MSZ_TPL_RENDER')))|number_format(5) }} seconds
/ Render: {{ startup_time(constant('MSZ_TPL_RENDER'))|number_format(5) }} seconds
{% endif %}
</div>