def total_seconds(delta):

    mu_sec = 1e-6  # number of seconds in one microseconds

    return delta.seconds + delta.microseconds * mu_sec
helper function to emulate function total_seconds,
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/utils/bench.py/total_seconds