From b0749afaf159080a851dfd639d48d22b0961c858 Mon Sep 17 00:00:00 2001 From: Aurimas Niekis Date: Wed, 18 Jun 2014 16:12:16 +0300 Subject: [PATCH] Added elapsed item to toolbar and menu Kind similar to doctrine toolbar item --- Resources/views/Collector/elastica.html.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Resources/views/Collector/elastica.html.twig b/Resources/views/Collector/elastica.html.twig index 637dae7..e6d7072 100644 --- a/Resources/views/Collector/elastica.html.twig +++ b/Resources/views/Collector/elastica.html.twig @@ -4,6 +4,9 @@ {% set icon %} elastica {{ collector.querycount }} + {% if collector.querycount > 0 %} + in {{ '%0.2f'|format(collector.time * 1000) }} ms + {% endif %} {% endset %} {% set text %}
@@ -24,6 +27,7 @@ Elastica {{ collector.querycount }} + {{ '%0.0f'|format(collector.time * 1000) }} ms {% endblock %}