Skip to content

Commit

Permalink
docstring to time_function
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantisan committed Sep 23, 2023
1 parent 801d303 commit 062781b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mind_palace/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


def time_function(func):
"""Decorator to time and print timing of a single function call"""
def inner(*args, **kwargs):
start_time = time.time()
result = func(*args, **kwargs)
Expand Down

0 comments on commit 062781b

Please sign in to comment.