Skip to content

PyTimer 0.5.1

Choose a tag to compare

@BlendingJake BlendingJake released this 27 Sep 19:09
· 64 commits to master since this release

Updates have been made to how decorators are handled. Previously PyTimer.setup_decorator() was needed to adjust the reps or runs_per_reps. This has now been changed, and those values are defined when the function is decorated. This means that functions can have varying values for reps and runs_per_reps. Also, callable_args can also be added to the decorator definition.

@PyTimer.decorator(reps=1, runs_per_reps=1, callable_args=False)
def func(arg):
    pass