diff --git a/src/mdevaluate/utils.py b/src/mdevaluate/utils.py index 916b659..5f48fbf 100644 --- a/src/mdevaluate/utils.py +++ b/src/mdevaluate/utils.py @@ -2,7 +2,7 @@ Collection of utility functions. """ import functools -from time import time +from time import time as pytime from types import FunctionType import numpy as np @@ -492,9 +492,9 @@ def fibonacci_sphere(samples=1000): def timing(function): @functools.wraps(function) def wrap(*args, **kw): - start_time = time() + start_time = pytime() result = function(*args, **kw) - end_time = time() + end_time = pytime() time_needed = end_time - start_time print(f"Finished in {int(time_needed // 60)} min " f"{int(time_needed % 60)} s") return result