You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
312 B

2 years ago
  1. """
  2. Python file for Processor test suite
  3. Short 1s loop which purposefully ignores
  4. Keyboard Interrupts in order to continue
  5. executing
  6. """
  7. import time
  8. import signal
  9. def ignored_it(*args):
  10. print("INTERRUPT")
  11. signal.signal(signal.SIGBREAK, ignored_it)
  12. while True:
  13. print(time.time())
  14. time.sleep(0.1)