{% macro gray(duration, premble='') -%}

{% if duration > 1 %} {{preamble}} {{duration|round(3)}}s {% else %} {{preamble}} {{(duration*1000)|round(3)}}ms {%endif%}

{%- endmacro %} {%- macro black(duration, premble='') -%}

{% if duration > 1 %} {{preamble}} {{duration|round(3)}}s {% else %} {{preamble}} {{(duration*1000)|round(3)}}ms {%endif%}

{%- endmacro %}