Repository navigation
PyTimer 0.5
- Updated how keyword arguments are handled
- Cleaned up documentation
- Allowed argument for
time( )andtime_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( )totime( )and added a static version of it calledtime_it( )
There have been several things renamed, so make sure to check through the API in the wiki.