From e6196672ca861a367836df3dbeffc7540950b101 Mon Sep 17 00:00:00 2001 From: Sagar Vora <16315650+sagarvora@users.noreply.github.com> Date: Wed, 23 Apr 2025 22:40:23 +0530 Subject: [PATCH] fix(DX): log execution time in `ms` --- frappe/database/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database/database.py b/frappe/database/database.py index baefad6c8b..9216eee61f 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -297,7 +297,7 @@ class Database: if debug: time_end = time() - frappe.log(f"Execution time: {time_end - time_start:.2f} sec") + frappe.log(f"Execution time: {(time_end - time_start) * 1000:.3f} ms") self.log_query(query, query_type, values, debug)