summaryrefslogtreecommitdiff
path: root/src-py/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src-py/util.py')
-rw-r--r--src-py/util.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/src-py/util.py b/src-py/util.py
deleted file mode 100644
index e8840114..00000000
--- a/src-py/util.py
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-code with no better place to go
-"""
-import time
-
-def debug_log_duration(method):
- """
- dubug call durations - use example:
-
- neo4j_util.post = util.debug_log_duration(neo4j_util.post)
- """
-
- def timed(*args, **kw):
- t_0 = time.time()
- result = method(*args, **kw)
- t_1 = time.time()
- dt = t_1 - t_0
-
- print ('%2.2f sec, function: %r' % (dt, method.__name__))
- return result
-
- return timed