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.
25 lines
507 B
25 lines
507 B
"""
|
|
Python file for Processor test suite
|
|
|
|
Infinite loop which purposefully ignores
|
|
Keyboard Interrupts in order to continue
|
|
executing. The only way to kill it is via
|
|
SIGTERM family signals.
|
|
"""
|
|
|
|
import time
|
|
import sys
|
|
|
|
if sys.platform.startswith('win'):
|
|
import ctypes
|
|
kernel32 = ctypes.WinDLL('kernel32')
|
|
kernel32.SetConsoleCtrlHandler(None, 0)
|
|
|
|
|
|
while True:
|
|
try:
|
|
print(time.time())
|
|
time.sleep(0.1)
|
|
except KeyboardInterrupt:
|
|
# Ignored!
|
|
print("INTERRUPT")
|