Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <[email protected]>
  • Loading branch information
neuronflow committed Feb 1, 2024
1 parent 3f55da0 commit db229c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panoptica/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db229c2

Please sign in to comment.