I would like to set an alarm (similar to signal.alarm) where the granularity is finer than integer seconds. For example, I'd like to set an alarm for 0.4 seconds or 3.2 seconds. I'm particularly interested in alarms that last for less than one second. In Python 3, I have only tried "import signal" and calling "signal.alarm(time)" where "time" is an integer. If "time" is a floating point number, the call fails. This is not surprising because the documentation says "time" must be an integer. At one point in Python 2, I found some code that implemented access to "ualarm()" from Python but all of this is quite obsolete at this point. Continue reading...