def get_duration(start, end=None):
    if end is None:
        end = datetime.utcnow()
    elapsed = (end - start).total_seconds()
    return int(elapsed * 1000)  # ms
Returns prepared Tornado routes
dataset/ETHPy150Open scrapinghub/splash/splash/har/utils.py/get_duration--crossover with--dataset/ETHPy150Open mrjoes/tornadio/tornadio/router.py/SocketRouterBase.route