High resolution timers in python?
I'm brand new to python and am trying out how to do some of the real basic things I've been doing in perl for years. one of those is the ability to set up a recurring alarm at the usec level. I usually sleep for a second but by being able to specify the time in usecs I get tremendous accuracy and can literally synchronize events across hundreds of different nodes.
In any event, while I can find a call to see up such a timer it only takes an argument in seconds, not usec. I've gotta believe such a timer exists, but I have not been able to find one.
the one I found is signal.alarm() and giving something other than an integer yields:
./run.py:33: DeprecationWarning: integer argument expected, got float
signal.alarm(.5)
-mark
-mark
|