PyTimer 0.4
Some new features:
- Introduced more time units: microseconds (us), and nanoseconds (ns)
- Switched from
time.time()totime.perf_counter()which is more accurate and allows accuracy into nanosecond range - Can force units to all be the same in displayed data:
PyTimer(units=(PyTimer.seconds, PyTimer.milliseconds, PyTimer.microseconds, PyTimer.nanoseconds)) - standardized outputs between display methods
- added keyword argument support for functions using decorators, as well as
evaluate()with a function - added support for automatic message generation for splits generated by
evaluate()and a function using the decorator evaluate()with a function is now more efficient by directly calling the function instead of usingexec()
I also am working on the Wiki to be clearer and easier to find examples.