Skip to content

PyTimer 0.5

Choose a tag to compare

@BlendingJake BlendingJake released this 01 Sep 21:10
· 65 commits to master since this release
  • Updated how keyword arguments are handled
  • Cleaned up documentation
  • Allowed argument for time( ) and time_it( ) to be to be callable. Meaning that everytime the function is called, the parameter values are updated. Allow for something like passing in random data for every run of a function.
  • Changed naming scheme from reps and iterations to reps and runs_per_rep to make it clearer what each one is. Basic format is
for rep in range(reps):
    for run in range(runs_per_rep):
        ...
  • Elapsed times can be displayed or returned by consecutive calls to elapsed( ), which is static
  • Renamed evaluate( ) to time( ) and added a static version of it called time_it( )

There have been several things renamed, so make sure to check through the API in the wiki.