cpcloud / ipython-autotime

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

Bug fix: fast commands fail the assert #4

Closed MatthieuBizien closed 9 years ago

MatthieuBizien commented 9 years ago

Example:

In [3]:x=1

Error in callback <bound method LineWatcher.stop of <autotime.LineWatcher object at 0x0000000004445F28>> (for post_run_cell):

AssertionError Traceback (most recent call last) C:\Users\mbz.ipython\extensions\autotime.py in stop(self) 23 if self.start_time: 24 diff = time.time() - self.start_time ---> 25 assert diff > 0 26 print('time: %s' % format_delta(diff)) 27

AssertionError:

MatthieuBizien commented 9 years ago

Well, it already had a pull request...