class_docstr: Class for timing execution speed of small code snippets.
  
  The constructor takes a statement to be timed, an additional
  statement used for setup, and a timer function.  Both statements
  default to 'pass'; the timer function is platform-dependent (see
  module doc string).  If 'globals' is specified, the code will be
  executed within that namespace (as opposed to inside timeit's
  namespace).
  
  To measure the execution time of the first statement, use the
  timeit() method.  The repeat() method is a convenience to call
  timeit() multiple times and return a list of results.
  
  The statements may contain newlines, as long as they don't contain
  multi-line string literals.
docstr: Time 'number' executions of the main statement.
  
  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 float seconds if using the default timer.   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.
docstr_tok: ["Time","'number","'","executions","of","the","main","statement",".","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","float","seconds","if","using","the","default","timer",".","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","."]
code: def timeit(self, number=default_number):
      """Time 'number' executions of the main statement.
  
      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 float seconds if using the default timer.   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.
      """
      it = itertools.repeat(None, number)
      gcold = gc.isenabled()
      gc.disable()
      try:
          timing = self.inner(it, self.timer)
      finally:
          if gcold:
              gc.enable()
      return timing
  
file_path: cpython/Lib/timeit.py
imports: import gc
  import itertools
  import sys
  import time
label_desc: Use image node_id 3 for calling the Timer obj's underlying member method code with example usage: obj.timeit(number) and returns: timing