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
369 B

  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. end = time.time() + 0.5
  10. while time.time() < end:
  11. try:
  12. print(time.time())
  13. time.sleep(0.01)
  14. except KeyboardInterrupt:
  15. # Ignored!
  16. print("You ain't stoppin me, fool")