def duration(function, *args, **kwargs):
    t = time()
    function(*args, **kwargs)
    return time() - t
Returns the running time of the given function, in seconds.
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/duration