Possible Duplicate:
How to limit execution time of a function call in Python
I have a function that needs a 90ms timeout. How can I cause an exception or a break or whatever if that limit is reached with extreme accuracy?
Thanks
Possible Duplicate:
How to limit execution time of a function call in Python
I have a function that needs a 90ms timeout. How can I cause an exception or a break or whatever if that limit is reached with extreme accuracy?
Thanks
have a thread execute in the background that waits for approximately(can't do it accurately) 90 ms and then set an atomic boolean value to break the "wait" loop.