def total_seconds(td):
    """Return timedelta's total seconds"""
    return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 1e6) / 1e6
dataset/ETHPy150Open piglei/uwsgi-sloth/uwsgi_sloth/utils.py/total_seconds/original