import time


def _runtime(runnable, *args, **kwargs):
    """
    Record how long it took to run something
    """
    start_time = time.time()
    ret = runnable(*args, **kwargs)
    end_time = time.time()
    return (end_time - start_time), ret