def run_command(args, **kwargs):
    """
    Given a list whose first element is a command name, followed by arguments,
    execute it and show timing info.
    """
    assert len(args) > 0
    cmd = args[0]
    start_time = time.time()
    process = AsyncProcess(args, **kwargs)
    process.wait()
    elapsed_time = start_time - time.time()
    logging.info("%s took %0.4f seconds", cmd, elapsed_time)
dataset/ETHPy150Open hammerlab/mhctools/mhctools/process_helpers.py/run_command/swapped operands of `-`