Instead ``` import time t = time.process_time() while (time.process_time() - t) * 1000 < 2: # stuff happens time.sleep(0.1) ``` Find cross platform way to do timeout with signals See also https://github.com/tmux-python/tmuxp/issues/620