I send a time.time() variable t0 to my template from FastAPI, which is the time update was triggered:
return templates.TemplateResponse("jobs.html", {
   "request": request, "jobs": sorted(out, key=lambda d: d['id'], reverse=True),
   "project_ids": ','.join([str(id) for id in myids]),
   "sorted_collumn": 'id',
   "filter": filter,
   "alljobs":alljobs,
   "nrecent": nrecent,
   "t0": t0
})
How can I time it at the end of rendering aka:
f"processtime:{time.time()-t0:.2f}sec"
time: {{ import time; time.time()-t0 }} 
jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got 'time'
or
time: {{ time.time()-t0 }}
jinja2.exceptions.UndefinedError: 'float object' has no attribute 'time'
 
    