code: def set_timer(timer='wall', logger="TaskLogger"):
      
      tasklogger = get_tasklogger(logger)
      tasklogger.set_timer(timer)
      return tasklogger
docs: Set the timer function
  
      Convenience function to set the task timer
  
      Parameters
      ----------
      timer : {'wall', 'cpu', or callable}, optional, default='wall'
              Timer function used to measure task running times.
              'wall' uses `time.time`, 'cpu' uses `time.process_time`
  
      Returns
      -------
      logger : TaskLogger