torch_ecg.utils.timeout# torch_ecg.utils.timeout(duration: float)[source]# A context manager that raises a TimeoutError after a specified time (in seconds). Modified from [1]. Parameters: duration (float) – The time duration in seconds, should be non-negative, 0 for no timeout. References