mirror of https://github.com/chriskiehl/Gooey.git
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.
22 lines
363 B
22 lines
363 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("Ignoring Ctrl+BREAK!")
|
|
|
|
signal.signal(signal.SIGBREAK, ignored_it)
|
|
|
|
|
|
|
|
end = time.time() + 0.5
|
|
while time.time() < end:
|
|
print(time.time())
|
|
time.sleep(0.01)
|