def total_seconds(delta):

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

    return delta.seconds + delta.microseconds * mu_sec
Return the indices for the lower-triangle of an (n, n) array.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/utils/bench.py/total_seconds--crossover with--dataset/ETHPy150Open nipy/nitime/nitime/index_utils.py/tril_indices_from