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 de1657c commit a736811
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 timed_func(*args, **kwargs):
start_time = time.time()
result = func(*args, **kwargs)
Expand Down

0 comments on commit a736811

Please sign in to comment.