bundles / IPython 9.3.0 / IPython / core / magics / execution / Timer / timeit
function
IPython.core.magics.execution:Timer.timeit
Signature
def timeit ( self , number = 1000000 ) Summary
Time 'number' executions of the main statement.
Extended Summary
To be precise, this executes the setup statement once, and then returns the time it takes to execute the main statement a number of times, as a float measured in seconds. The argument is the number of times through the loop, defaulting to one million. The main statement, the setup statement and the timer function to be used are passed to the constructor.
Aliases
-
IPython.core.magics.execution.Timer.timeit