def compute_elapsed_seconds(elapsed):
    return (elapsed.days * 60 * 60 * 24 +
            elapsed.seconds + elapsed.microseconds / 1.0e6)
Given a timedelta, returns a float of total seconds elapsed.
dataset/ETHPy150Open everett-wetchler/okcupid/FetchProfiles.py/compute_elapsed_seconds