summary refs log tree commit diff
path: root/synapse/util/logutils.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-05-28 19:39:27 +1000
committerAmber Brown <hawkowl@atleastfornow.net>2018-05-28 19:39:27 +1000
commit3ef5cd74a6bff9b33144cb834782e0402e6eb152 (patch)
tree6a8905a36f70f1d83e7223625afba605a0cf8b6b /synapse/util/logutils.py
parentinvalid syntax :( (diff)
downloadsynapse-3ef5cd74a6bff9b33144cb834782e0402e6eb152.tar.xz
update to more consistently use seconds in any metrics or logging
Diffstat (limited to 'synapse/util/logutils.py')
-rw-r--r--synapse/util/logutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/util/logutils.py b/synapse/util/logutils.py
index 3a83828d25..03249c5dc8 100644
--- a/synapse/util/logutils.py
+++ b/synapse/util/logutils.py
@@ -96,7 +96,7 @@ def time_function(f):
         id = _TIME_FUNC_ID
         _TIME_FUNC_ID += 1
 
-        start = time.clock() * 1000
+        start = time.clock()
 
         try:
             _log_debug_as_f(
@@ -107,10 +107,10 @@ def time_function(f):
 
             r = f(*args, **kwargs)
         finally:
-            end = time.clock() * 1000
+            end = time.clock()
             _log_debug_as_f(
                 f,
-                "[FUNC END] {%s-%d} %f",
+                "[FUNC END] {%s-%d} %.3f sec",
                 (func_name, id, end - start,),
             )