def TimeIt(self, callback, name=None, repetitions=None, pre=None, **kwargs):
    if repetitions is None:
      repetitions = self.REPEATS

    if name is None:
      name = callback.__name__

    if pre is not None:
      pre()

    start = time.time()
    for _ in xrange(repetitions):
      return_value = callback(**kwargs)

    time_taken = (time.time() - start) / repetitions
    self.AddResult(name, time_taken, repetitions, return_value)
URL parameters for wq.io.loaders.NetLoader
dataset/ETHPy150Open google/grr/grr/lib/test_lib.py/AverageMicroBenchmarks.TimeIt--crossover with--dataset/ETHPy150Open heigeo/climata/climata/base.py/WebserviceLoader.params