code: def timeit(func, *args, **kwargs):
      
      start_time = time.time()
      res = func(*args, **kwargs)
      timing = time.time() - start_time
      return res, timing
docs: Time execution of function. Returns (res, seconds).
  
      >>> res, timing = timeit(time.sleep, 1)