def ms_from_timedelta(td):
    return (td.seconds * 1000) + (td.microseconds / 1000.0)
Given a timedelta object, returns a float representing milliseconds
dataset/ETHPy150Open dcramer/django-devserver/devserver/utils/time.py/ms_from_timedelta