code: def log_time(method):
      
  
      def timed(*args, **kwargs):
          tic = time_function()
          result = method(*args, **kwargs)
          log.debug('%s executed in %.4f seconds.',
                    method.__name__,
                    time_function() - tic)
          return result
      timed.__name__ = method.__name__
      timed.__doc__ = method.__doc__
      return timed
docs: A decorator for methods which will time the method
      and then emit a log.debug message with the method name
      and how long it took to execute.