def total_seconds(td):
    return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6
Is the current thread sharing the lock at this time?
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/total_seconds--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__is_sharer