Lines Matching defs:timeit
12 python timeit.py [-n N] [-r N] [-s S] [-p] [-h] [--] [statement]
46 timeit(string, string) -> float
57 __all__ = ["Timer", "timeit", "repeat", "default_timer"]
59 dummy_src_name = "<timeit-src>"
91 executed within that namespace (as opposed to inside timeit's
95 timeit() method. The repeat() method is a convenience to call
96 timeit() multiple times and return a list of results.
144 t.timeit(...) # or t.repeat(...)
164 def timeit(self, number=default_number):
185 """Call timeit() a few times.
187 This is a convenience function that calls the timeit()
189 specifies how many times to call timeit(), defaulting to 5;
206 t = self.timeit(number)
213 Calls the timeit method with increasing numbers from the sequence
224 time_taken = self.timeit(number)
231 def timeit(stmt="pass", setup="pass", timer=default_timer,
233 """Convenience function to create Timer object and call timeit method."""
234 return Timer(stmt, setup, timer, globals).timeit(number)