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.

20 lines
312 B

"""
Python file for Processor test suite
Short 1s loop which purposefully ignores
Keyboard Interrupts in order to continue
executing
"""
import time
import signal
def ignored_it(*args):
print("INTERRUPT")
signal.signal(signal.SIGBREAK, ignored_it)
while True:
print(time.time())
time.sleep(0.1)