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

def set_timer(timer='wall', logger="TaskLogger"):
    """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
    """
    tasklogger = get_tasklogger(logger)
    tasklogger.set_timer(timer)
    return tasklogger