def METHOD_NAME(item: Function, log=True, nextitem=None):
    """ Modify the pytest output to include the execution duration for all tests """
    # Perform the runtest protocol for a single test item.
    if enable_extended_logging and pytest_start_time:
        start_time = datetime.now()
        print(f'\n{start_time.strftime("%H:%M:%S.%f")[:-3]} Starting "{item.name}"...', end='', flush=True)
        yield
        now = datetime.now()
        duration = (now - start_time).total_seconds()
        total = now - pytest_start_time
        print(f' in {duration:.3f}s ({human_readable.time_delta(total)} in total)', end='')
    else:
        yield