as a module import
Cool stuff is that timeit is build into both Jupyter and Ipython as a magic function. It can be executed by using the simple % operator.