From db229c22e9374f7527c126bcd3c4b78a288593e5 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Thu, 1 Feb 2024 15:30:55 +0100 Subject: [PATCH] add docstring Signed-off-by: neuronflow --- panoptica/timing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panoptica/timing.py b/panoptica/timing.py index 3ed8698..dbee75a 100644 --- a/panoptica/timing.py +++ b/panoptica/timing.py @@ -2,6 +2,8 @@ def measure_time(func): + """Decorator to measure the time it takes to execute a function.""" + def wrapper(*args, **kwargs): start_time = time.time() result = func(*args, **kwargs)