'Context manager for measuring execution time.'

@contextlib.contextmanager
def _log_execution_time(self):

    start_time = time.time()
    (yield)
    execution_time = (time.time() - start_time)
    LOGGER.info(u'Execution    time:    {time}    seconds'.format(time=execution_time))
