timeit.timeit()

timeit.timeit(stmt='pass', setup='pass', timer=, number=1000000, globals=None)

Create a Timer instance with the given statement, setup code and timer function and run its timeit() method with number executions. The optional globals argument specifies a namespace in which to execute the code.

Changed in version 3.5: The optional globals parameter was added.

doc_python
2016-10-07 17:44:45
Comments
Leave a Comment

Please login to continue.