Show timings for index page data gathering

This commit is contained in:
Edward Betts 2024-01-08 15:22:16 +00:00
parent cd0ffb3390
commit 1453c4015c
2 changed files with 49 additions and 20 deletions

View file

@ -125,6 +125,12 @@
</li>
<li>Bristol Sunrise: {{ sunrise.strftime("%H:%M:%S") }} /
Sunset: {{ sunset.strftime("%H:%M:%S") }}</li>
<li>Data gather took {{ "%.1f" | format(data_gather_seconds) }} seconds</li>
<li>Stock market open/close took
{{ "%.1f" | format(stock_market_times_seconds) }} seconds</li>
{% for name, seconds in timings %}
<li>{{ name }} took {{ "%.1f" | format(seconds) }} seconds</li>
{% endfor %}
</ul>
<h3>Stock markets</h3>