new_contents: import time
  
  def time_func(f):
      def wrap(*args, **kwargs):
          time1 = time.time()
          ret = f(*args, **kwargs)
          time2 = time.time()
          print '%s function took %0.3f ms' % (f.func_name, (time2-time1)*1000.0)
          return ret
      return wrap
  
subject: Add decorator for timing functions