On 12 Feb 2015 07:55, "R Schumacher" <r...@blue-cove.com> wrote: > > >>> s='np.unpackbits(np.frombuffer(np.asarray(np.pi), > dtype=np.uint8)).astype(np.int32)' > >>> timr(s) > 0.000252470827292
I'm not sure what timr is, but you should check out ipython and its built in %timeit command, which is trivial to use but, because it uses the 'timeit' module, goes to extreme effort to get accurate times (minimizing timing overhead, performing multiple runs, etc.). -n
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion