Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Did you try %timeit as the first line in the cell? I'm not sure whether that would work.

Another option is to write a dummy program that calls your other program, like def foo(): return my_program(n) and then do timeit on foo.