code: def timing(name=''):
    
    start = datetime.datetime.now()
    timestamp = start.strftime('%H:%M')
    tf.logging.info('Starting job [%s] at %s', name, timestamp)
    yield
    end = datetime.datetime.now()
    timestamp = end.strftime('%H:%M')
    tf.logging.info('Finished job [%s] at %s', name, timestamp)
    duration = end - start
    duration_mins = duration.total_seconds() / 60
    tf.logging.info('Total time [%s] (m): %d', name, int(duration_mins))
docs: Log start, end, and duration.