import functools
import timeit


def clockit(function, *args, executions=1000, repeat=3, **kwargs):
    """Time the execution of a function with the provided arguments.

    Returns:
        float, time required to run the function `executions` times.
    """

    # Turn a function with arguments into a function without arguments.
    nullary = functools.partial(function, *args, **kwargs)

    # https://docs.python.org/3/library/timeit.html#timeit.Timer.repeat
    best_time = min(timeit.repeat(nullary, number=executions, repeat=repeat))

    # TODO: Return an object containing the result of running the function
    # and metadata about the timing (e.g., executions, repeat).
    return best_time

@@ -26,16 +26,505 @@
 imeit%0A%0A%0A
+class Clocked(object):%0A    %22%22%22Container for metadata about the timed function.%0A%0A    Arguments:%0A        result: The result returned by the timed function.%0A        timings (list): The list of results returned by calling timeit.repeat()%0A    %22%22%22%0A    def __init__(self, result, timings):%0A        self.result = result%0A        self.timings = timings%0A%0A    @property%0A    def time(self):%0A        # https://docs.python.org/3/library/timeit.html#timeit.Timer.repeat%0A        return min(self.timings)%0A%0A%0A
 def cloc
@@ -746,233 +746,105 @@
 %22%22%22%0A
-%0A    # Turn a function with arguments into a function without arguments.%0A    nullary = functools.partial(function, *args, **kwargs)%0A%0A    # https://docs.python.org/3/library/timeit.html#timeit.Timer.repeat%0A    best_time = min(
+    nullary = functools.partial(function, *args, **kwargs)%0A%0A    result = nullary()%0A    timings = 
 time
@@ -895,17 +895,16 @@
 =repeat)
-)
 %0A%0A    # 
@@ -913,134 +913,159 @@
 DO: 
-Return an object containing the result of running the function%0A    # and metadata about the timing (e.g., executions, repeat).
+Initialize Clocked with nullary, use a method to do the timing%0A    # done above and store results on the class.%0A    clocked = Clocked(result, timings)%0A
 %0A   
@@ -1076,14 +1076,12 @@
 urn 
-best_time
+clocked
 %0A

Add Clocked class