cpcloud / ipython-autotime

Time everything in IPython
Apache License 2.0
118 stars 12 forks source link

Change time difference assert from > to >= 0 #2

Closed EdmundTse closed 5 years ago

EdmundTse commented 9 years ago

diff == 0 occurs on when executing trivial code in a cell. Updating the assert to include this case. The notebook outputs "time: 0 ns" rather than an AssertionError.

Thanks for demoing your extension at PyData - it's a brilliant idea.

MatthieuBizien commented 9 years ago

+1

cpcloud commented 5 years ago

Merged in a9c7cab