root: log runtime in milliseconds

This commit is contained in:
Jens Langhammer 2021-02-09 23:33:25 +01:00
parent 0af66a26ab
commit d15e50025c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class ASGILogger:
if message["type"] == "http.response.body" and not message.get(
"more_body", None
):
runtime = int((time() - self.start) * 10 ** 6)
runtime = int((time() - self.start) * 1000)
self.log(runtime)
await send(message)