def add_listener(self, key, listener):
        assert callable(listener)
        self.listeners.setdefault(key, set()).add(listener)
Convert a slurm time to seconds, a float.
dataset/ETHPy150Open EverythingMe/click-config/click_config/inotify/__init__.py/Watcher.add_listener--crossover with--dataset/ETHPy150Open fasrc/slurmmon/lib/python/site-packages/slurmmon/__init__.py/slurmtime_to_seconds